Skip to content

Instantly share code, notes, and snippets.

@iwadon
Created November 21, 2014 03:50
Show Gist options
  • Save iwadon/1108c85b48caba8a2216 to your computer and use it in GitHub Desktop.
Save iwadon/1108c85b48caba8a2216 to your computer and use it in GitHub Desktop.
--- ext/fiddle/extconf.rb~ 2014-06-30 01:59:36.000000000 +0900
+++ ext/fiddle/extconf.rb 2014-11-21 11:57:08.361740300 +0900
@@ -11,6 +11,10 @@
$defs.push(%{-DRUBY_LIBFFI_MODVERSION=#{ '%d%03d%03d' % ver }})
end
+if enable_config('static-libffi', false)
+ $defs.push('-DFFI_BUILDING')
+end
+
unless have_header('ffi.h')
if have_header('ffi/ffi.h')
$defs.push(format('-DUSE_HEADER_HACKS'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment