diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2013-11-17 00:19:35 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2013-11-17 00:19:35 -0800 |
commit | d921b66245e525ef4132c2db0186aeec0227beb3 (patch) | |
tree | f127d398428466b51288724269a246e9cf9a2999 /ext | |
parent | 6d590d3a8aeceb7c6f20c72581d9b947a8afc292 (diff) | |
download | ffi-yajl-d921b66245e525ef4132c2db0186aeec0227beb3.tar.gz |
removing some mkmf experiments
Diffstat (limited to 'ext')
-rw-r--r-- | ext/libyajl2/extconf.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/libyajl2/extconf.rb b/ext/libyajl2/extconf.rb index f83435c..2a3e046 100644 --- a/ext/libyajl2/extconf.rb +++ b/ext/libyajl2/extconf.rb @@ -5,21 +5,16 @@ if !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx' require 'mkmf' require 'rbconfig' - ## the customer is always right, ruby is always compiled to be stupid + # the customer is always right, ruby is always compiled to be stupid $CFLAGS = ENV['CFLAGS'] if ENV['CFLAGS'] $LDFLAGS = ENV['LDFLAGS'] if ENV['LDFLAGS'] RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] - ## except if you're doing an unoptimized gcc install we're going to help you out a bit + # except if you're doing an unoptimized gcc install we're going to help you out a bit if RbConfig::MAKEFILE_CONFIG['CC'] =~ /gcc|clang/ $CFLAGS << " -O3" unless $CFLAGS[/-O\d/] end - pkg_config('yajl') - - # yajl_tree.h is only in >= 2.0 - have_header("yajl/yajl_tree.h") || find_header("yajl/yajl_tree.h", "/usr/local/include") - # yajl_complete_parse is only in >= 2.0 libyajl2_ok = have_library("yajl", "yajl_complete_parse", [ "yajl/yajl_parse.h" ]) |