Skip to content

Instantly share code, notes, and snippets.

@carhartl
Forked from caius/ext_dl_extconf_rb.patch
Created May 27, 2014 09:43
Show Gist options
  • Save carhartl/9d893b9710b284efea2d to your computer and use it in GitHub Desktop.
Save carhartl/9d893b9710b284efea2d to your computer and use it in GitHub Desktop.
diff --git a/ext/dl/extconf.rb b/ext/dl/extconf.rb
index 8317ac3..f1b3155 100644
--- a/ext/dl/extconf.rb
+++ b/ext/dl/extconf.rb
@@ -1,7 +1,9 @@
require 'mkmf'
if RbConfig::CONFIG['GCC'] == 'yes'
- $CFLAGS << " -fno-defer-pop -fno-omit-frame-pointer"
+ # $CFLAGS << " -fno-defer-pop -fno-omit-frame-pointer"
+ $CFLAGS << " -fno-defer-pop" unless have_macro("__clang__")
+ $CFLAGS << " -fno-omit-frame-pointer"
end
$INSTALLFILES = [
@carhartl
Copy link
Author

Adapted for 1.9.3-p392, install with rbenv:

$ rbenv install --patch 1.9.3-p392 < <(curl -sSL https://gist.githubusercontent.com/carhartl/9d893b9710b284efea2d/raw/c336d62fc6cd61674d826e252e9ada65e70dc534/ext_dl_extconf_rb.patch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment