[104573] trunk/dports/math/atlas/Portfile
vince at macports.org
vince at macports.org
Thu Mar 28 12:34:19 PDT 2013
Revision: 104573
https://trac.macports.org/changeset/104573
Author: vince at macports.org
Date: 2013-03-28 12:34:19 -0700 (Thu, 28 Mar 2013)
Log Message:
-----------
Fix bugs for ppc64 builds
Modified Paths:
--------------
trunk/dports/math/atlas/Portfile
Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile 2013-03-28 17:28:25 UTC (rev 104572)
+++ trunk/dports/math/atlas/Portfile 2013-03-28 19:34:19 UTC (rev 104573)
@@ -245,16 +245,16 @@
set gvct_flag "-maltivec -mabi=altivec"
set cvct_flag "-maltivec"
- configure.args-append --cc="'${configure.cc} -m32 \
- -force_cpusubtype_ALL'" \
- -A 4
+ configure.args-append -A 4
# On Leopard, we may warn the user that ppc
# is not as efficient as ppc64
- if {${native_arch} == "ppc64"} {
+ pre-fetch {
+ if {${native_arch} == "ppc64"} {
ui_msg "Compiling for ppc on a G5 machine.\
This could lead to reduced performance."
+ }
}
} else {
@@ -392,10 +392,10 @@
configure.args-append -C acg ${configure.cc}
# If we build for the CPU of the machine, use
- # machine arch tuning.
+ # machine arch tuning (except on ppc)
# -march=natives supersedes -msse4.2 so disable it on AVX
# capable machines
- if {${has_avx} == "no"} {
+ if {${has_avx} == "no" && ${build_arch} != "ppc"} {
append gcc_flags " -march=native"
}
@@ -484,7 +484,7 @@
set clang_supp_flags ""
# We build for the native architecture
- if {${arch} == ${native_arch}} {
+ if {${arch} == ${native_arch} && ${build_arch} != "ppc"} {
if {${has_avx} == "no"} {
@@ -625,6 +625,12 @@
${worksrcpath}/configure
reinplace "s|-no-cpp-precomp||g" \
${worksrcpath}/CONFIG/src/atlcomp.txt
+
+ # On PPC64 we need extra flags for configuring
+ if {${native_arch} == "ppc64"} {
+ configure.args-append --cc="'${configure.cc} -m32 \
+ -force_cpusubtype_ALL'"
+ }
# Get some system specific variables for maximum optimization
set cpufreq [expr {[sysctl hw.cpufrequency] / 1000000}]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130328/364c87f7/attachment.html>
More information about the macports-changes
mailing list