Ticket #45707: fftw-3.patch

File fftw-3.patch, 1.8 KB (added by larryv (Lawrence Velázquez), 10 years ago)
  • dports/math/fftw-3/Portfile

    commit 524e826dfc6abf290ddd79e0525f79eba7f8dca2
    Author: Lawrence Velázquez <larryv@macports.org>
    Date:   25 minutes ago
    
        fftw-3: Fix incorrect linkage on Yosemite (#45707)
        
        Again with the Libtool MACOSX_DEPLOYMENT_TARGET bug (#44596).
    
    diff --git a/dports/math/fftw-3/Portfile b/dports/math/fftw-3/Portfile
    index 5fe0b19..7b242de 100644
    a b PortGroup mpi 1.0 
    88
    99name            fftw-3
    1010version         3.3.4
    11 revision        0
     11revision        1
    1212categories      math
    1313license         GPL-2+
    1414platforms       darwin
    checksums \ 
    4444    rmd160  463b5120d42ec2a3bc1385689176c5e0296d0d4a \
    4545    sha256  8f0cde90929bc05587c3368d2f15cd0530a60b8a9912a8e2979a72dbe5af0982
    4646
     47# Correctly link with "-undefined dynamic_lookup" on Yosemite and later
     48# (#45707).
     49patchfiles \
     50    yosemite-libtool-dynamic_lookup.patch
     51
    4752# don't change configure.cc, etc. since we'll take care of that manually with
    4853# MPICC env var
    4954mpi.choose
  • new file dports/math/fftw-3/files/yosemite-libtool-dynamic_lookup.patch

    diff --git a/dports/math/fftw-3/files/yosemite-libtool-dynamic_lookup.patch b/dports/math/fftw-3/files/yosemite-libtool-dynamic_lookup.patch
    new file mode 100644
    index 0000000..710e18f
    - +  
     1Index: configure
     2===================================================================
     3--- configure.orig
     4+++ configure
     5@@ -8703,7 +8703,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
     6       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
     7        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
     8          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     9-       10.[012]*)
     10+       10.[012][,.]*)
     11          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
     12        10.*)
     13          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;