ports/lang/ruby19/files/patch-ext__dl__extconf.rb
Steve Wills 4d921409e2 - Add patch to fix build on 11-CURRENT after Clang 3.4 import. No need to
conditionalize this on OSVER because the patch is safe everywhere. No bump
  because package doesn't change.

Submitted by:	antoine (1.9, 2.0 and 2.1 based on)
2014-02-25 04:18:07 +00:00

12 lines
389 B
Ruby

--- ./ext/dl/extconf.rb.orig 2010-02-25 22:49:20.000000000 +0000
+++ ./ext/dl/extconf.rb 2014-02-18 22:06:44.000000000 +0000
@@ -1,7 +1,8 @@
require 'mkmf'
if RbConfig::CONFIG['GCC'] == 'yes'
- $CFLAGS << " -fno-defer-pop -fno-omit-frame-pointer"
+ $CFLAGS << " -fno-defer-pop" unless have_macro("__clang__")
+ $CFLAGS << " -fno-omit-frame-pointer"
end
$INSTALLFILES = [