From 2fb21db08c647538c050e19a65ece7702abefbab Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 22 May 2007 20:48:34 +0000 Subject: * ext/extmk.rb, ext/purelib.rb, lib/mkmf.rb, runruby.rb: clear default load path to get rid of load pre-installed extensions/libraries. [ruby-core:11017] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/extmk.rb | 5 ++++- ext/purelib.rb | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 ext/purelib.rb (limited to 'ext') diff --git a/ext/extmk.rb b/ext/extmk.rb index f40bfa6ec..a932a1441 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -323,8 +323,11 @@ else $ruby = '$(topdir)/miniruby' + EXEEXT end $ruby << " -I'$(topdir)' -I'$(hdrdir)/lib'" -$ruby << " -I'#{$extout}'" if $extout +$ruby << " -I'$(extout)/$(arch)' -I'$(extout)/common'" if $extout +$ruby << " -I'$(hdrdir)/ext' -rpurelib.rb" $config_h = '$(topdir)/config.h' +ENV["RUBYLIB"] = "-" +ENV["RUBYOPT"] = "-rpurelib.rb" MTIMES = [__FILE__, 'rbconfig.rb', srcdir+'/lib/mkmf.rb'].collect {|f| File.mtime(f)} diff --git a/ext/purelib.rb b/ext/purelib.rb new file mode 100644 index 000000000..f826c5782 --- /dev/null +++ b/ext/purelib.rb @@ -0,0 +1,6 @@ +if nul = $:.index("-") + $:[nul..-1] = ["."] +end +if nul = $:.index("-") + $:[nul..-1] = ["."] +end -- cgit