Skip to content

Commit

Permalink
libgdiplus: 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 94c0876 commit 26c634f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions devel/libgdiplus/Portfile
Expand Up @@ -2,7 +2,7 @@ PortSystem 1.0

name libgdiplus
version 2.10.9
revision 5
revision 6
categories devel
platforms darwin
maintainers nomaintainer
Expand Down Expand Up @@ -35,7 +35,8 @@ depends_lib port:jpeg \
port:xrender

patchfiles patch-freetype-2.5.1.diff \
patch-libpng-1.5.diff
patch-libpng-1.5.diff \
yosemite-libtool.patch

post-patch {
reinplace "s/-pthread/-lpthread/g" ${worksrcpath}/configure
Expand Down
12 changes: 12 additions & 0 deletions devel/libgdiplus/files/yosemite-libtool.patch
@@ -0,0 +1,12 @@
Don't accidentally create flat-namespace dylibs on Yosemite (#44596).
--- configure.orig 2012-01-31 11:28:27.000000000 -0600
+++ configure 2017-02-09 09:19:39.000000000 -0600
@@ -7051,7 +7051,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 26c634f

Please sign in to comment.