diff options
Diffstat (limited to 'lib/rubygems/ext/ext_conf_builder.rb')
-rw-r--r-- | lib/rubygems/ext/ext_conf_builder.rb | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/rubygems/ext/ext_conf_builder.rb b/lib/rubygems/ext/ext_conf_builder.rb index f8fed2a8bf..22e740fde8 100644 --- a/lib/rubygems/ext/ext_conf_builder.rb +++ b/lib/rubygems/ext/ext_conf_builder.rb @@ -21,22 +21,10 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder destdir = ENV["DESTDIR"] - # This is only needed when running rubygems test without a proper installation. - # Prepending it in a normal installation can cause problem with order of $LOAD_PATH. - # Therefore only add rubygems_load_path if it is not present in the default $LOAD_PATH. - rubygems_load_path = File.expand_path("../..", __dir__) - load_path = - case rubygems_load_path - when RbConfig::CONFIG["sitelibdir"], RbConfig::CONFIG["vendorlibdir"], RbConfig::CONFIG["rubylibdir"] - [] - else - ["-I#{rubygems_load_path}"] - end - begin require "shellwords" cmd = Gem.ruby.shellsplit - cmd.push(*load_path) + cmd.push(*rubygems_load_path) cmd << File.basename(extension) cmd.push(*args) |