Skip to content

Commit

Permalink
libao: 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 10, 2017
1 parent 5a31781 commit 2a28adc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion audio/libao/Portfile
Expand Up @@ -4,7 +4,7 @@ PortSystem 1.0

name libao
version 1.2.0
revision 1
revision 2
categories audio
maintainers nomaintainer
description A Cross-platform Audio Library
Expand All @@ -20,6 +20,8 @@ master_sites http://downloads.xiph.org/releases/ao/
checksums sha1 6b1d2c6a2e388e3bb6ebea158d51afef18aacc56 \
rmd160 00921bf311f8d7a2be1f860221811924402beebd

patchfiles yosemite-libtool.patch

post-patch {
reinplace "s|/etc/libao.conf|${prefix}/etc/libao.conf|" \
${worksrcpath}/CHANGES \
Expand Down
12 changes: 12 additions & 0 deletions audio/libao/files/yosemite-libtool.patch
@@ -0,0 +1,12 @@
Don't accidentally create flat-namespace dylibs on Yosemite (#44596).
--- configure.orig 2014-01-27 11:10:36.000000000 -0600
+++ configure 2017-02-10 05:28:50.000000000 -0600
@@ -7686,7 +7686,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 2a28adc

Please sign in to comment.