X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=lib%2Fmcollective%2Fvendor%2Fjson%2Fext%2Fjson%2Fext%2Fgenerator%2Fextconf.rb;fp=lib%2Fmcollective%2Fvendor%2Fjson%2Fext%2Fjson%2Fext%2Fgenerator%2Fextconf.rb;h=149f22c13bd0c6d4420a0a58ac7ee49573e8e45d;hb=b87d2f4e68281062df1913440ca5753ae63314a9;hp=0000000000000000000000000000000000000000;hpb=ab0ea530b8ac956091f17b104ab2311336cfc250;p=packages%2Fprecise%2Fmcollective.git diff --git a/lib/mcollective/vendor/json/ext/json/ext/generator/extconf.rb b/lib/mcollective/vendor/json/ext/json/ext/generator/extconf.rb new file mode 100644 index 0000000..149f22c --- /dev/null +++ b/lib/mcollective/vendor/json/ext/json/ext/generator/extconf.rb @@ -0,0 +1,20 @@ +require 'mkmf' +require 'rbconfig' + +unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O3') + $CFLAGS << ' -O3' +end +if CONFIG['CC'] =~ /gcc/ + $CFLAGS << ' -Wall' + #unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb') + # $CFLAGS << ' -O0 -ggdb' + #end +end + +if RUBY_VERSION < "1.9" + have_header("re.h") +else + have_header("ruby/re.h") + have_header("ruby/encoding.h") +end +create_makefile 'json/ext/generator'