[76513] trunk/dports/math/atlas/Portfile
vince at macports.org
vince at macports.org
Sat Feb 26 13:19:58 PST 2011
Revision: 76513
http://trac.macports.org/changeset/76513
Author: vince at macports.org
Date: 2011-02-26 13:19:35 -0800 (Sat, 26 Feb 2011)
Log Message:
-----------
Ensure that ${build_arch}='ppc' gives a 32-bit build even on a G5.
Modified Paths:
--------------
trunk/dports/math/atlas/Portfile
Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile 2011-02-26 20:14:57 UTC (rev 76512)
+++ trunk/dports/math/atlas/Portfile 2011-02-26 21:19:35 UTC (rev 76513)
@@ -101,7 +101,18 @@
-O 12 \
-b ${my_arch} \
-Fa alg -fPIC
+
+# MacPorts defaults to ppc on G4 and G5, so we must override 64-bit detection
+# by Atlas, even if we are on a G5
+if {${build_arch} == "ppc"} {
+ configure.args-delete --cc=${configure.cc} \
+ -Fa alg -fPIC
+
+ configure.args-append --cc='${configure.cc} -m32' \
+ -Fa alg '-fPIC -m32'
+}
+
if { [variant_isset universal] } {
configure.universal_args-delete --disable-dependency-tracking
configure.args-delete --cc=${configure.cc} \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110226/3ed5f21b/attachment-0001.html>
More information about the macports-changes
mailing list