From: Xavier Shay Date: 2011-05-27T20:07:15+09:00 Subject: [ruby-core:36505] Re: configure is generating broken Makefiles On 26/05/11 1:19 AM, Nobuyoshi Nakada wrote: > Hi, > > At Wed, 25 May 2011 18:49:06 +0900, > Xavier Shay wrote in [ruby-core:36454]: >> I have an issue which is perplexing me. >> ext/-test-/string/extconf.rb contains this line: >> $defs<< "-DTEST_INIT_FUNCS(X)=\"#{inits.join(' ')}\"" >> >> however after running make ext/-test-/string/Makefile *does not* contain >> -DTEST_INIT_FUNCS >> >> Why not? > > See extconf.h. > OK I'm think I'm almost at the bottom of this. Could you please explain the intent behind this code? # ext/extmk.rb:39 $" << "mkmf.rb" load File.expand_path("lib/mkmf.rb", srcdir) The same pattern is used at enc/make_encmake.rb:7. I don't understand it. Thanks, Xavier