summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-22 21:37:36 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-22 21:37:36 +0000
commit28f5f27c65d35c102c876a47f332748e2903cddc (patch)
tree15b757670a01b2fb99e83eed11ba30e5aaf9e45d /ext
parent0360556f069c79be632fc317fa776d8d49b5f282 (diff)
downloadruby-28f5f27c65d35c102c876a47f332748e2903cddc.tar.gz
ruby-28f5f27c65d35c102c876a47f332748e2903cddc.tar.xz
ruby-28f5f27c65d35c102c876a47f332748e2903cddc.zip
merge -r 12332:12336
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@12339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/extmk.rb4
-rw-r--r--ext/purelib.rb3
2 files changed, 7 insertions, 0 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index ac396a0d8..c3ba27aaf 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -324,7 +324,11 @@ else
$ruby = '$(topdir)/miniruby' + EXEEXT
end
$ruby << " -I'$(topdir)' -I'$(hdrdir)/lib'"
+$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..10ee06176
--- /dev/null
+++ b/ext/purelib.rb
@@ -0,0 +1,3 @@
+if nul = $:.index("-")
+ $:[nul..-1] = ["."]
+end