summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-12 08:31:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-12 08:31:44 +0000
commita4fbd748e24ff25af354d7e993adf5e8a6bacf0f (patch)
tree48b6feb009aebf7526569ac6d0b28c49ff0d6b4f /ext/json
parentffad7d737c0cec88ccb5c3ce59e59a2b7d6647ac (diff)
* configure.in (GCC): subst for GCC depending extension libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/json')
-rw-r--r--ext/json/ext/generator/extconf.rb2
-rw-r--r--ext/json/ext/parser/extconf.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/json/ext/generator/extconf.rb b/ext/json/ext/generator/extconf.rb
index 5574151..fc26742 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 b56c4e6..e790f6c 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