summaryrefslogtreecommitdiff
path: root/ext/ffi_yajl/ext/dlopen/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ffi_yajl/ext/dlopen/extconf.rb')
-rw-r--r--ext/ffi_yajl/ext/dlopen/extconf.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/ffi_yajl/ext/dlopen/extconf.rb b/ext/ffi_yajl/ext/dlopen/extconf.rb
new file mode 100644
index 0000000..7e18469
--- /dev/null
+++ b/ext/ffi_yajl/ext/dlopen/extconf.rb
@@ -0,0 +1,15 @@
+require 'mkmf'
+require 'rubygems'
+
+RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
+
+puts $CFLAGS
+puts $LDFLAGS
+
+have_header("dlfcn.h")
+
+have_library("dl", "dlopen")
+
+dir_config 'dlopen'
+
+create_makefile 'ffi_yajl/ext/dlopen'