[109811] trunk/dports/math/gsl/Portfile

nicos at macports.org nicos at macports.org
Tue Aug 20 06:52:20 PDT 2013


Revision: 109811
          https://trac.macports.org/changeset/109811
Author:   nicos at macports.org
Date:     2013-08-20 06:52:20 -0700 (Tue, 20 Aug 2013)
Log Message:
-----------
gsl: disable avx for gcc compilers (ticket #38271)

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

Modified: trunk/dports/math/gsl/Portfile
===================================================================
--- trunk/dports/math/gsl/Portfile	2013-08-20 13:18:37 UTC (rev 109810)
+++ trunk/dports/math/gsl/Portfile	2013-08-20 13:52:20 UTC (rev 109811)
@@ -6,6 +6,7 @@
 name                gsl
 conflicts           gsl-devel
 version             1.16
+revision            1
 categories          math science
 maintainers         openmaintainer gmail.com:dtakahashi42
 license             GPL-3+
@@ -80,8 +81,13 @@
 }
 
 platform darwin i386 {
-    if { [variant_isset optimize] && ( [variant_isset gcc43] || [variant_isset gcc44] || [variant_isset gcc45] || [variant_isset gcc46] || [variant_isset gcc47] ) } {
-        configure.cflags-append "-march=native"
+    if { [variant_isset optimize] } {
+        if { [variant_isset gcc43] } {
+            configure.cflags-append "-march=native"
+        } elseif { [variant_isset gcc44] || [variant_isset gcc45] || [variant_isset gcc46] || [variant_isset gcc47] } {
+            # Currently, gcc cannot compile AVX instructions on OSX
+            configure.cflags-append "-march=native -mno-avx"
+        }
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130820/9d4e728b/attachment.html>


More information about the macports-changes mailing list