[114186] trunk/dports/math/gsl/Portfile
nicos at macports.org
nicos at macports.org
Sun Dec 1 05:58:44 PST 2013
Revision: 114186
https://trac.macports.org/changeset/114186
Author: nicos at macports.org
Date: 2013-12-01 05:58:44 -0800 (Sun, 01 Dec 2013)
Log Message:
-----------
gsl: passing optimization flags to configure.optflags, supressing unneeded quotes, adding gcc48 variant in optimization tests
Modified Paths:
--------------
trunk/dports/math/gsl/Portfile
Modified: trunk/dports/math/gsl/Portfile
===================================================================
--- trunk/dports/math/gsl/Portfile 2013-12-01 13:23:34 UTC (rev 114185)
+++ trunk/dports/math/gsl/Portfile 2013-12-01 13:58:44 UTC (rev 114186)
@@ -85,23 +85,24 @@
}
variant optimize description "Provide further optimization options (depending on compiler used)" {
- configure.cflags-append "-O3"
+ configure.optflags-append -O3
}
platform darwin i386 {
if { [variant_isset optimize] } {
if { [variant_isset mpclang33] } {
- configure.cflags-append "-march=native"
+ configure.optflags -march=native
} elseif { [variant_isset gcc43] } {
- configure.cflags-append "-ftree-vectorize -march=native"
+ configure.optflags -ftree-vectorize -march=native
} elseif { [variant_isset gcc44] || [variant_isset gcc45] ||
- [variant_isset gcc46] || [variant_isset gcc47] } {
+ [variant_isset gcc46] || [variant_isset gcc47] ||
+ [variant_isset gcc48] } {
# Currently, gcc cannot compile AVX instructions on OSX
- configure.cflags-append "-ftree-vectorize -march=native -mno-avx"
+ configure.optflags -ftree-vectorize -march=native -mno-avx
} else {
#Default compiler. Check if the compiler supports "native" architecture
if { [string match "clang" ${configure.compiler}] } {
- configure.cflags-append "-march=native"
+ configure.optflags -march=native
}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131201/3afe000c/attachment.html>
More information about the macports-changes
mailing list