ruby-changes:5056
From: nobu <ko1@a...>
Date: Fri, 23 May 2008 09:53:11 +0900 (JST)
Subject: [ruby-changes:5056] Ruby:r16549 (ruby_1_8): * configure.in (MINIRUBY), common.mk (RUBYOPT): add purelib.rb.
nobu 2008-05-23 09:52:23 +0900 (Fri, 23 May 2008)
New Revision: 16549
Modified files:
branches/ruby_1_8/ChangeLog
branches/ruby_1_8/Makefile.in
branches/ruby_1_8/common.mk
branches/ruby_1_8/configure.in
branches/ruby_1_8/ext/extmk.rb
Log:
* configure.in (MINIRUBY), common.mk (RUBYOPT): add purelib.rb.
[ruby-core:16642]
* ext/extmk.rb: load purelib.rb only when not cross compiling.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/common.mk?r1=16549&r2=16548&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/Makefile.in?r1=16549&r2=16548&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ext/extmk.rb?r1=16549&r2=16548&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/configure.in?r1=16549&r2=16548&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=16549&r2=16548&diff_format=u
Index: ruby_1_8/Makefile.in
===================================================================
--- ruby_1_8/Makefile.in (revision 16548)
+++ ruby_1_8/Makefile.in (revision 16549)
@@ -35,6 +35,9 @@
empty =
OUTFLAG = @OUTFLAG@$(empty)
CFLAGS = @CFLAGS@ @XCFLAGS@ @ARCH_FLAG@
+cflags = @cflags@
+optflags = @optflags@
+debugflags = @debugflags@
CPPFLAGS = -I. -I$(srcdir) @CPPFLAGS@
LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
EXTLDFLAGS =
Index: ruby_1_8/ext/extmk.rb
===================================================================
--- ruby_1_8/ext/extmk.rb (revision 16548)
+++ ruby_1_8/ext/extmk.rb (revision 16549)
@@ -298,7 +298,7 @@
$mflags.unshift(*rest) unless rest.empty?
def $mflags.set?(flag)
- grep(/\A-(?!-).*#{'%c' % flag}/i) { return true }
+ grep(/\A-(?!-).*#{flag.chr}/i) { return true }
false
end
def $mflags.defined?(var)
@@ -354,12 +354,16 @@
else
$ruby = '$(topdir)/miniruby' + EXEEXT
end
-$ruby << " -I'$(topdir)' -I'$(top_srcdir)/lib'"
-$ruby << " -I'$(extout)/$(arch)' -I'$(extout)/common'" if $extout
-$ruby << " -I'$(top_srcdir)/ext' -rpurelib.rb"
+$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"] = "-rpurelib.rb"
+end
$config_h = '$(topdir)/config.h'
-ENV["RUBYLIB"] = "-"
-ENV["RUBYOPT"] = "-rpurelib.rb"
+$mflags << "ruby=#$ruby"
MTIMES = [__FILE__, 'rbconfig.rb', srcdir+'/lib/mkmf.rb'].collect {|f| File.mtime(f)}
Index: ruby_1_8/configure.in
===================================================================
--- ruby_1_8/configure.in (revision 16548)
+++ ruby_1_8/configure.in (revision 16549)
@@ -1635,6 +1635,11 @@
esac
CPPFLAGS="$CPPFLAGS "'$(DEFS)'
+test -z "$CFLAGS" || CFLAGS="$CFLAGS "; CFLAGS="$CFLAGS"'${cflags}'
+test -z "$CPPFLAGS" || CPPFLAGS="$CPPFLAGS "; CPPFLAGS="$CPPFLAGS"'${cppflags}'
+AC_SUBST(cppflags, [])dnl
+AC_SUBST(optflags)dnl
+AC_SUBST(debugflags)dnl
AC_SUBST(XCFLAGS)dnl
AC_SUBST(XLDFLAGS)dnl
AC_SUBST(LIBRUBY_LDSHARED)
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog (revision 16548)
+++ ruby_1_8/ChangeLog (revision 16549)
@@ -1,3 +1,10 @@
+Fri May 23 09:52:21 2008 Nobuyoshi Nakada <nobu@r...>
+
+ * configure.in (MINIRUBY), common.mk (RUBYOPT): add purelib.rb.
+ [ruby-core:16642]
+
+ * ext/extmk.rb: load purelib.rb only when not cross compiling.
+
Fri May 23 04:22:19 2008 Hidetoshi NAGAI <nagai@a...>
* ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: fix memory leak.
Index: ruby_1_8/common.mk
===================================================================
--- ruby_1_8/common.mk (revision 16548)
+++ ruby_1_8/common.mk (revision 16549)
@@ -113,6 +113,9 @@
pre-install-local:: pre-install-bin pre-install-lib pre-install-man
do-install-local:
$(MINIRUBY) $(srcdir)/instruby.rb --make="$(MAKE)" $(INSTRUBY_ARGS) --install=local --mantype="$(MANTYPE)"
+loadpath: $(PREP)
+ $(MINIRUBY) -e 'p $$:'
+
post-install-local:: post-install-bin post-install-lib post-install-man
install-ext: pre-install-ext do-install-ext post-install-ext
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/