1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/lang/ruby21/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
374 B
Ruby

--- ext/dl/extconf.rb.orig 2014-02-24 15:49:13.436431209 +0000
+++ ext/dl/extconf.rb 2014-02-24 15:50:21.287476923 +0000
@@ -1,7 +1,7 @@
require 'mkmf'
if RbConfig::CONFIG['GCC'] == 'yes'
- (have_macro("__clang__") ? $LDFLAGS : $CFLAGS) << " -fno-defer-pop"
+ $CFLAGS << " -fno-defer-pop" unless have_macro("__clang__")
$CFLAGS << " -fno-omit-frame-pointer"
end