diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ffi_yajl/ext/encoder/extconf.rb | 3 | ||||
-rw-r--r-- | ext/ffi_yajl/ext/parser/extconf.rb | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ext/ffi_yajl/ext/encoder/extconf.rb b/ext/ffi_yajl/ext/encoder/extconf.rb index 0107112..bf9c839 100644 --- a/ext/ffi_yajl/ext/encoder/extconf.rb +++ b/ext/ffi_yajl/ext/encoder/extconf.rb @@ -8,6 +8,9 @@ RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] $CFLAGS = " -I#{Libyajl2.include_path} #{$CFLAGS}" $LDFLAGS = " -L#{Libyajl2.opt_path} #{$LDFLAGS}" +# remove "-Wl,--no-undefined" flag if existent to allow for loading with dlopen +$LDFLAGS.slice!("-Wl,--no-undefined") + puts $CFLAGS puts $LDFLAGS diff --git a/ext/ffi_yajl/ext/parser/extconf.rb b/ext/ffi_yajl/ext/parser/extconf.rb index 3154142..d090638 100644 --- a/ext/ffi_yajl/ext/parser/extconf.rb +++ b/ext/ffi_yajl/ext/parser/extconf.rb @@ -8,6 +8,9 @@ RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] $CFLAGS = "-I#{Libyajl2.include_path} #{$CFLAGS}" $LDFLAGS = "-L#{Libyajl2.opt_path} #{$LDFLAGS}" +# remove "-Wl,--no-undefined" flag if existent to allow for loading with dlopen +$LDFLAGS.slice!("-Wl,--no-undefined") + puts $CFLAGS puts $LDFLAGS |