Skip to content

Commit

Permalink
hdf4: add a patch to avoid creation of flat-namespace on Yosemite, cl…
Browse files Browse the repository at this point in the history
…osing #53533
  • Loading branch information
tenomoto committed Feb 15, 2017
1 parent c668f95 commit e1d2e3f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion science/hdf4/Portfile
Expand Up @@ -5,6 +5,7 @@ PortGroup compilers 1.0

name hdf4
version 4.2.12
revision 1
platforms darwin
categories science
license NCSA
Expand All @@ -26,7 +27,8 @@ compilers.setup
depends_lib port:zlib port:jpeg

patchfiles patch-hdf-examples-Makefile.in.diff \
patch-mfhdf-examples-Makefile.in.diff
patch-mfhdf-examples-Makefile.in.diff \
yosemite-libtool.patch

configure.args --disable-netcdf --disable-fortran \
--with-jpeg=${prefix} --enable-shared \
Expand Down
12 changes: 12 additions & 0 deletions science/hdf4/files/yosemite-libtool.patch
@@ -0,0 +1,12 @@
Don't accidentally create flat-namespace dylibs on Yosemite (#44596).
--- configure.orig 2016-06-29 08:23:22.000000000 -0500
+++ configure 2017-02-10 06:38:17.000000000 -0600
@@ -10787,7 +10787,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 e1d2e3f

Please sign in to comment.