diff options
Diffstat (limited to 'ext')
-rwxr-xr-x[-rw-r--r--] | ext/extmk.rb | 1 | ||||
-rw-r--r-- | ext/purelib.rb | 17 |
2 files changed, 0 insertions, 18 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index ab48634c1a..c5c61c4736 100644..100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -351,7 +351,6 @@ $ruby << " -I'$(topdir)'" unless CROSS_COMPILING $ruby << " -I'$(top_srcdir)/lib'" $ruby << " -I'$(extout)/$(arch)' -I'$(extout)/common'" if $extout - $ruby << " -I./- -I'$(top_srcdir)/ext' -rpurelib.rb" ENV["RUBYLIB"] = "-" ENV["RUBYOPT"] = "-r#{File.expand_path('ext/purelib.rb', $top_srcdir)}" end diff --git a/ext/purelib.rb b/ext/purelib.rb deleted file mode 100644 index cc1a00bdb2..0000000000 --- a/ext/purelib.rb +++ /dev/null @@ -1,17 +0,0 @@ -nul = nil -$:.each_with_index {|path, index| - if /\A(?:\.\/)*-\z/ =~ path - nul = index - break - end -} -if nul - removed, $:[nul..-1] = $:[nul..-1], [] - if defined?(Gem::QuickLoader) - removed.each do |path| - # replaces a fake rubygems by gem_prelude.rb with an alternative path - index = $".index(File.join(path, 'rubygems.rb')) - $"[index] = Gem::QuickLoader.path_to_full_rubygems_library if index - end - end -end |