Ticket #47938: apr.patch

File apr.patch, 1.7 KB (added by larryv (Lawrence Velázquez), 9 years ago)
  • dports/devel/apr/Portfile

    commit 3f2c101fddebde297e884bb60496b33bb8cf68eb
    Author: Lawrence Velázquez <larryv@macports.org>
    Date:   55 minutes ago
    
        apr: Don't create flat-namespace dylib on Yosemite
        
        Quash the Libtool MACOSX_DEPLOYMENT_TARGET bug (comment:35:ticket:44596,
        http://lists.gnu.org/archive/html/libtool-patches/2014-09/msg00000.html).
    
    diff --git a/dports/devel/apr/Portfile b/dports/devel/apr/Portfile
    index 6c6e4db3..5094d8e 100644
    a b PortSystem 1.0 
    44
    55name            apr
    66version         1.5.2
     7revision        1
    78categories      devel
    89maintainers     geeklair.net:dluke
    910platforms       darwin
    configure.args --with-installbuilddir=${prefix}/share/apr-1/build \ 
    3839                --enable-nonportable-atomics \
    3940                ac_cv_func_setpgrp_void=no
    4041
    41 patchfiles      apr_h_patch.diff
     42patchfiles      apr_h_patch.diff \
     43                yosemite-libtool.patch
    4244
    4345pre-configure   {
    4446        #- -no-cpp-precomp is obsolete
  • new file dports/devel/apr/files/yosemite-libtool.patch

    diff --git a/dports/devel/apr/files/yosemite-libtool.patch b/dports/devel/apr/files/yosemite-libtool.patch
    new file mode 100644
    index 0000000..e317e18
    - +  
     1Don't accidentally create flat-namespace dylibs on Yosemite (#44596).
     2
     3Index: configure
     4===================================================================
     5--- configure.orig
     6+++ configure
     7@@ -13701,7 +13701,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
     8       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
     9        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
     10          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     11-       10.[012]*)
     12+       10.[012][,.]*)
     13          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
     14        10.*)
     15          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;