Skip to content

Commit

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

name enca
version 1.15
revision 1
categories textproc
platforms darwin
license GPL-2
Expand All @@ -22,6 +23,8 @@ checksums sha1 cec4509b662ded6651c3c5e10d1c6f0067909b24 \

depends_lib port:libiconv

patchfiles yosemite-libtool.patch

livecheck.type regex
livecheck.url ${master_sites}
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
12 changes: 12 additions & 0 deletions textproc/enca/files/yosemite-libtool.patch
@@ -0,0 +1,12 @@
Don't accidentally create flat-namespace dylibs on Yosemite (#44596).
--- configure.orig 2013-09-30 02:48:22.000000000 -0500
+++ configure 2017-02-09 09:32:57.000000000 -0600
@@ -7733,7 +7733,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 e585888

Please sign in to comment.