[140910] trunk/dports/math/arpack/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Sun Oct 4 20:41:00 PDT 2015


Revision: 140910
          https://trac.macports.org/changeset/140910
Author:   mcalhoun at macports.org
Date:     2015-10-04 20:41:00 -0700 (Sun, 04 Oct 2015)
Log Message:
-----------
arpack: do not mix -m32 and -m64 flags (fixes #42100)

Modified Paths:
--------------
    trunk/dports/math/arpack/Portfile

Modified: trunk/dports/math/arpack/Portfile
===================================================================
--- trunk/dports/math/arpack/Portfile	2015-10-05 02:47:01 UTC (rev 140909)
+++ trunk/dports/math/arpack/Portfile	2015-10-05 03:41:00 UTC (rev 140910)
@@ -7,6 +7,7 @@
 
 name                arpack
 version             3.1.5
+revision            1
 categories          math
 license             BSD
 platforms           darwin
@@ -27,10 +28,14 @@
 
 configure.args      home=${worksrcpath} --disable-mpi
 
-if {${build_arch} eq "x86_64" || ${build_arch} eq "ppc64"} {
-    configure.args-append FFLAGS='-O2 -m64'
-} else {
-    configure.args-append FFLAGS='-O2 -m32'
+configure.optflags-replace -Os -O2
+
+if {![variant_isset universal]} {
+    if {${build_arch} eq "x86_64" || ${build_arch} eq "ppc64"} {
+        configure.fflags-append -m64
+    } else {
+        configure.fflags-append -m32
+    }
 }
 
 # LDFLAGS needs to be cleared to avoid it having a "-arch" option, considered illegal by gfortran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151004/a4ef67e6/attachment-0001.html>


More information about the macports-changes mailing list