X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=lib%2Fmcollective%2Fvendor%2Fjson%2Fext%2Fjson%2Fext%2Fparser%2Fextconf.rb;fp=lib%2Fmcollective%2Fvendor%2Fjson%2Fext%2Fjson%2Fext%2Fparser%2Fextconf.rb;h=d2438cd6493533d6378c8e487c157e33d2eec1e0;hb=b87d2f4e68281062df1913440ca5753ae63314a9;hp=0000000000000000000000000000000000000000;hpb=ab0ea530b8ac956091f17b104ab2311336cfc250;p=packages%2Fprecise%2Fmcollective.git diff --git a/lib/mcollective/vendor/json/ext/json/ext/parser/extconf.rb b/lib/mcollective/vendor/json/ext/json/ext/parser/extconf.rb new file mode 100644 index 0000000..d2438cd --- /dev/null +++ b/lib/mcollective/vendor/json/ext/json/ext/parser/extconf.rb @@ -0,0 +1,16 @@ +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 + +have_header("re.h") +have_header("ruby/st.h") +create_makefile 'json/ext/parser'