diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | ext/dl/extconf.rb | 2 | ||||
-rw-r--r-- | ext/json/ext/generator/extconf.rb | 2 | ||||
-rw-r--r-- | ext/json/ext/parser/extconf.rb | 2 | ||||
-rw-r--r-- | ext/openssl/extconf.rb | 2 |
6 files changed, 9 insertions, 4 deletions
@@ -1,3 +1,7 @@ +Sat Sep 12 17:31:42 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * configure.in (GCC): subst for GCC depending extension libraries. + Sat Sep 12 07:52:59 2009 Masaki Suketa <masaki.suketa@nifty.ne.jp> * ext/win32ole/win32ole.c (EVENTSINK_Invoke): initialize result diff --git a/configure.in b/configure.in index 98c08d7c4e..1d49b058a0 100644 --- a/configure.in +++ b/configure.in @@ -262,6 +262,7 @@ fi AC_PROG_CC AC_PROG_CXX AC_PROG_GCC_TRADITIONAL +AC_SUBST(GCC) if test "$GCC" = yes; then linker_flag=-Wl, : ${optflags=-O3} diff --git a/ext/dl/extconf.rb b/ext/dl/extconf.rb index 36babf4143..8317ac35ad 100644 --- a/ext/dl/extconf.rb +++ b/ext/dl/extconf.rb @@ -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 diff --git a/ext/json/ext/generator/extconf.rb b/ext/json/ext/generator/extconf.rb index 55741516f4..fc267420f1 100644 --- a/ext/json/ext/generator/extconf.rb +++ b/ext/json/ext/generator/extconf.rb @@ -1,7 +1,7 @@ require 'mkmf' require 'rbconfig' -if CONFIG['CC'] =~ /gcc/ +if CONFIG['GCC'] == 'yes' $CFLAGS += ' -Wall' #$CFLAGS += ' -O0 -ggdb' end diff --git a/ext/json/ext/parser/extconf.rb b/ext/json/ext/parser/extconf.rb index b56c4e66d7..e790f6caae 100644 --- a/ext/json/ext/parser/extconf.rb +++ b/ext/json/ext/parser/extconf.rb @@ -1,7 +1,7 @@ require 'mkmf' require 'rbconfig' -if CONFIG['CC'] =~ /gcc/ +if CONFIG['GCC'] == 'yes' $CFLAGS += ' -Wall' #$CFLAGS += ' -O0 -ggdb' end diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index 6b83489642..993d9e9f18 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -28,7 +28,7 @@ message "=== OpenSSL for Ruby configurator ===\n" 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 |