ruby-changes:13112
From: nobu <ko1@a...>
Date: Sat, 12 Sep 2009 17:32:01 +0900 (JST)
Subject: [ruby-changes:13112] Ruby:r24861 (trunk): * configure.in (GCC): subst for GCC depending extension libraries.
nobu 2009-09-12 17:31:44 +0900 (Sat, 12 Sep 2009) New Revision: 24861 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24861 Log: * configure.in (GCC): subst for GCC depending extension libraries. Modified files: trunk/ChangeLog trunk/configure.in trunk/ext/dl/extconf.rb trunk/ext/json/ext/generator/extconf.rb trunk/ext/json/ext/parser/extconf.rb trunk/ext/openssl/extconf.rb Index: configure.in =================================================================== --- configure.in (revision 24860) +++ configure.in (revision 24861) @@ -262,6 +262,7 @@ AC_PROG_CC AC_PROG_CXX AC_PROG_GCC_TRADITIONAL +AC_SUBST(GCC) if test "$GCC" = yes; then linker_flag=-Wl, : ${optflags=-O3} Index: ChangeLog =================================================================== --- ChangeLog (revision 24860) +++ ChangeLog (revision 24861) @@ -1,3 +1,7 @@ +Sat Sep 12 17:31:42 2009 Nobuyoshi Nakada <nobu@r...> + + * configure.in (GCC): subst for GCC depending extension libraries. + Sat Sep 12 07:52:59 2009 Masaki Suketa <masaki.suketa@n...> * ext/win32ole/win32ole.c (EVENTSINK_Invoke): initialize result Index: ext/dl/extconf.rb =================================================================== --- ext/dl/extconf.rb (revision 24860) +++ ext/dl/extconf.rb (revision 24861) @@ -1,6 +1,6 @@ require 'mkmf' -if( RbConfig::CONFIG['CC'] =~ /gcc/ ) +if RbConfig::CONFIG['GCC'] == 'yes' $CFLAGS << " -fno-defer-pop -fno-omit-frame-pointer" end Index: ext/json/ext/generator/extconf.rb =================================================================== --- ext/json/ext/generator/extconf.rb (revision 24860) +++ ext/json/ext/generator/extconf.rb (revision 24861) @@ -1,7 +1,7 @@ require 'mkmf' require 'rbconfig' -if CONFIG['CC'] =~ /gcc/ +if CONFIG['GCC'] == 'yes' $CFLAGS += ' -Wall' #$CFLAGS += ' -O0 -ggdb' end Index: ext/json/ext/parser/extconf.rb =================================================================== --- ext/json/ext/parser/extconf.rb (revision 24860) +++ ext/json/ext/parser/extconf.rb (revision 24861) @@ -1,7 +1,7 @@ require 'mkmf' require 'rbconfig' -if CONFIG['CC'] =~ /gcc/ +if CONFIG['GCC'] == 'yes' $CFLAGS += ' -Wall' #$CFLAGS += ' -O0 -ggdb' end Index: ext/openssl/extconf.rb =================================================================== --- ext/openssl/extconf.rb (revision 24860) +++ ext/openssl/extconf.rb (revision 24861) @@ -28,7 +28,7 @@ if with_config("debug") or enable_config("debug") $defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG" - if /gcc/ =~ CONFIG["CC"] + if CONFIG['GCC'] == 'yes' $CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall" end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/