Skip to content

Commit

Permalink
libgcrypt: Don't create flat-namespace dylib on Yosemite and later
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandesign committed Feb 9, 2017
1 parent af4f203 commit 94c0876
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions devel/libgcrypt/Portfile
Expand Up @@ -5,6 +5,7 @@ PortGroup muniversal 1.0

name libgcrypt
version 1.7.6
revision 1
categories devel security
# libs are LGPL, executables and docs are GPL
license {GPL-2+ LGPL-2.1+}
Expand All @@ -28,6 +29,8 @@ checksums rmd160 bc9843aa76a13f3e7ea5ac291717241242d497f0 \

depends_lib port:libgpg-error

patchfiles yosemite-libtool.patch

configure.args --disable-asm

# Build fix for compilers that default to c99 (clang)
Expand Down
12 changes: 12 additions & 0 deletions devel/libgcrypt/files/yosemite-libtool.patch
@@ -0,0 +1,12 @@
Don't accidentally create flat-namespace dylibs on Yosemite (#44596).
--- configure.orig 2017-01-18 05:41:35.000000000 -0600
+++ configure 2017-02-09 09:13:02.000000000 -0600
@@ -8359,7 +8359,7 @@
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
- 10.[012]*)
+ 10.[012][,.]*)
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10.*)
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;

0 comments on commit 94c0876

Please sign in to comment.