[86239] trunk/dports/devel/ppl/Portfile
adfernandes at macports.org
adfernandes at macports.org
Sun Oct 23 12:29:42 PDT 2011
Revision: 86239
http://trac.macports.org/changeset/86239
Author: adfernandes at macports.org
Date: 2011-10-23 12:29:37 -0700 (Sun, 23 Oct 2011)
Log Message:
-----------
devel/ppl: use -mtune=native for universal builds only with more recent gcc versions, closing #30414
Modified Paths:
--------------
trunk/dports/devel/ppl/Portfile
Modified: trunk/dports/devel/ppl/Portfile
===================================================================
--- trunk/dports/devel/ppl/Portfile 2011-10-23 17:56:28 UTC (rev 86238)
+++ trunk/dports/devel/ppl/Portfile 2011-10-23 19:29:37 UTC (rev 86239)
@@ -38,24 +38,30 @@
depends_lib port:gmp port:glpk
-variant gcc43 conflicts gcc44 gcc45 description "Use GCC 4.3 for compilation of PPL" {
+variant gcc43 conflicts gcc44 gcc45 gcc46 description "Use GCC 4.3 for compilation of PPL" {
depends_build-append port:gcc43
configure.compiler macports-gcc-4.3
configure.cflags-append "-ftree-vectorize -O3 -march=native"
}
-variant gcc44 conflicts gcc43 gcc45 description "Use GCC 4.4 for compilation of PPL" {
+variant gcc44 conflicts gcc43 gcc45 gcc46 description "Use GCC 4.4 for compilation of PPL" {
depends_build-append port:gcc44
configure.compiler macports-gcc-4.4
configure.cflags-append "-ftree-vectorize -O3 -march=native"
}
-variant gcc45 conflicts gcc43 gcc44 description "Use GCC 4.5 for compilation of PPL" {
+variant gcc45 conflicts gcc43 gcc44 gcc46 description "Use GCC 4.5 for compilation of PPL" {
depends_build-append port:gcc45
configure.compiler macports-gcc-4.5
configure.cflags-append "-ftree-vectorize -O3 -march=native"
}
+variant gcc46 conflicts gcc43 gcc44 gcc45 description "Use GCC 4.5 for compilation of PPL" {
+ depends_build-append port:gcc45
+ configure.compiler macports-gcc-4.5
+ configure.cflags-append "-ftree-vectorize -O3 -march=native"
+}
+
if { ${os.arch} == "i386" } {
set native_target {i386 x86_64}
} else {
@@ -70,12 +76,14 @@
lappend merger_configure_args($arch) --host=${arch}-apple-${os.platform}${os.version}
}
foreach arch ${native_target} {
- lappend merger_configure_cflags($arch) -march=native
+ if { [variant_isset gcc43] || [variant_isset gcc44] || [variant_isset gcc45] || [variant_isset gcc46] } {
+ lappend merger_configure_cflags($arch) -march=native
+ }
}
}
platform i386 {
- if { [variant_isset gcc44] || [variant_isset gcc45] } {
+ if { [variant_isset gcc43] || [variant_isset gcc44] || [variant_isset gcc45] } {
configure.cflags-append -mno-avx
configure.cxxflags-append -mno-avx
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111023/09628f3a/attachment.html>
More information about the macports-changes
mailing list