diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-12 08:31:44 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-12 08:31:44 +0000 |
| commit | dc7e496156a54c004a0e60fbcfaa564c1dce592b (patch) | |
| tree | 48b6feb009aebf7526569ac6d0b28c49ff0d6b4f /ext/json | |
| parent | 8d8efb5d6d0ef18f0a8fdeb1c6e12fd5d48d86f6 (diff) | |
| download | ruby-dc7e496156a54c004a0e60fbcfaa564c1dce592b.tar.gz ruby-dc7e496156a54c004a0e60fbcfaa564c1dce592b.tar.xz ruby-dc7e496156a54c004a0e60fbcfaa564c1dce592b.zip | |
* configure.in (GCC): subst for GCC depending extension libraries.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/json')
| -rw-r--r-- | ext/json/ext/generator/extconf.rb | 2 | ||||
| -rw-r--r-- | ext/json/ext/parser/extconf.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/json/ext/generator/extconf.rb b/ext/json/ext/generator/extconf.rb index 55741516f..fc267420f 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 b56c4e66d..e790f6caa 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 |
