vendor/json_pure/ext/json/ext/parser/extconf.rb in scout-5.1.2 vs vendor/json_pure/ext/json/ext/parser/extconf.rb in scout-5.1.3

- old
+ new

@@ -1,11 +1,15 @@ require 'mkmf' require 'rbconfig' +unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O3') + $CFLAGS << ' -O3' +end if CONFIG['CC'] =~ /gcc/ - $CFLAGS += ' -Wall' - #$CFLAGS += ' -O0 -ggdb' + $CFLAGS << ' -Wall' + #unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb') + # $CFLAGS << ' -O0 -ggdb' + #end end -have_header("ruby/st.h") || have_header("st.h") have_header("re.h") -create_makefile 'parser' +create_makefile 'json/ext/parser'