From 771f2d10a3a8516ae7bf504741f9ad95031b804a Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 11 May 2008 08:57:40 +0000 Subject: [PATCH] * configure.in (MINIRUBY): should not include extension library path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ configure.in | 1 + ext/purelib.rb | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index aa75b5a5b7..062b8f4bd6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun May 11 17:57:36 2008 Nobuyoshi Nakada + + * configure.in (MINIRUBY): should not include extension library path. + Sun May 11 10:36:10 2008 Kazuhiro NISHIYAMA * eval.c (method_name, method_owner): New methods; backported diff --git a/configure.in b/configure.in index 55600b37e4..0dd53a9e90 100644 --- a/configure.in +++ b/configure.in @@ -1402,6 +1402,7 @@ if test x"$cross_compiling" = xyes; then RUNRUBY='$(MINIRUBY) -I`cd $(srcdir)/lib; pwd`' else MINIRUBY='./miniruby$(EXEEXT) -I$(srcdir)/lib' + MINIRUBY="$MINIRUBY"' -I$(EXTOUT)/common -I./- -r$(srcdir)/ext/purelib.rb' PREP='miniruby$(EXEEXT)' RUNRUBY='$(MINIRUBY) $(srcdir)/runruby.rb --extout=$(EXTOUT)' fi diff --git a/ext/purelib.rb b/ext/purelib.rb index 10ee06176c..284254a8b4 100644 --- a/ext/purelib.rb +++ b/ext/purelib.rb @@ -1,3 +1,3 @@ -if nul = $:.index("-") +if nul = $:.find_index {|path| /\A(?:\.\/)*-\z/ =~ path} $:[nul..-1] = ["."] end