[131306] trunk/dports/math/fftw-3
jeremyhu at macports.org
jeremyhu at macports.org
Thu Jan 8 16:23:03 PST 2015
Revision: 131306
https://trac.macports.org/changeset/131306
Author: jeremyhu at macports.org
Date: 2015-01-08 16:23:03 -0800 (Thu, 08 Jan 2015)
Log Message:
-----------
fftw-3: Fix build on Leopard with newer compilers
Modified Paths:
--------------
trunk/dports/math/fftw-3/Portfile
Added Paths:
-----------
trunk/dports/math/fftw-3/files/leopard-no-memalign.patch
Modified: trunk/dports/math/fftw-3/Portfile
===================================================================
--- trunk/dports/math/fftw-3/Portfile 2015-01-09 00:07:20 UTC (rev 131305)
+++ trunk/dports/math/fftw-3/Portfile 2015-01-09 00:23:03 UTC (rev 131306)
@@ -47,7 +47,8 @@
# Don't link with "-flat_namespace -undefined suppress" on Yosemite and
# later (#45707).
patchfiles \
- yosemite-libtool.patch
+ yosemite-libtool.patch \
+ leopard-no-memalign.patch
# don't change configure.cc, etc. since we'll take care of that manually with
# MPICC env var
Added: trunk/dports/math/fftw-3/files/leopard-no-memalign.patch
===================================================================
--- trunk/dports/math/fftw-3/files/leopard-no-memalign.patch (rev 0)
+++ trunk/dports/math/fftw-3/files/leopard-no-memalign.patch 2015-01-09 00:23:03 UTC (rev 131306)
@@ -0,0 +1,11 @@
+--- kernel/ifftw.h.orig 2015-01-08 16:12:31.000000000 -0800
++++ kernel/ifftw.h 2015-01-08 16:14:18.000000000 -0800
+@@ -120,7 +120,7 @@ typedef struct scanner_s scanner;
+ /*-----------------------------------------------------------------------*/
+ /* alloca: */
+ #if HAVE_SIMD
+-# ifdef HAVE_AVX
++# if defined(HAVE_AVX) && defined(HAVE_POSIX_MEMALIGN)
+ # define MIN_ALIGNMENT 32 /* best alignment for AVX, conservative for
+ * everything else */
+ # else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150108/6101502e/attachment.html>
More information about the macports-changes
mailing list