From: Eric Hodel Date: 2011-08-24T08:11:39+09:00 Subject: Re: mkmf & config question On Aug 23, 2011, at 2:50 PM, serialhex wrote: > On Tue, Aug 23, 2011 at 5:39 PM, Eric Hodel wrote: >> DO NOT CHANGE THE ENTRIES IN RbConfig::CONFIG, IT WILL ONLY LEAD TO MADNESS >> >> Please explain why you want to change the prefix of ruby so we can answer >> your question properly. > > 'tis not i who wanted to enable this kind of madness... but a friend of mine > with his open source project. he wants to be able to put the ruby modules > that are generated into another dir for some reason that i don't quite > understand... i'm guessing for different types of installs where one may > want to install the modules in another location. i think he hacked > something together but idk… RubyGems edits the generated Makefile and changes RUBYARCHDIR and RUBYLIBDIR: https://github.com/rubygems/rubygems/blob/master/lib/rubygems/ext/builder.rb#L19-23 When `make install` is run the files will be placed in the gem's library directory, not ruby's site_dir. (Hrm, I guess I should submit a patch to mkmf.rb to allow this to be overridden instead of this hack.)