[105307] trunk/dports/math/atlas/Portfile
vince at macports.org
vince at macports.org
Wed Apr 17 06:08:16 PDT 2013
Revision: 105307
https://trac.macports.org/changeset/105307
Author: vince at macports.org
Date: 2013-04-17 06:08:16 -0700 (Wed, 17 Apr 2013)
Log Message:
-----------
Fix a bug caused by Macports ‘sysctl’ misbehaving with strings outputs.
Modified Paths:
--------------
trunk/dports/math/atlas/Portfile
Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile 2013-04-17 12:44:31 UTC (rev 105306)
+++ trunk/dports/math/atlas/Portfile 2013-04-17 13:08:16 UTC (rev 105307)
@@ -178,17 +178,18 @@
set universal [variant_isset universal]
# Finds the type of CPU we are running on
-set native_arch $build_arch
+set native_arch ${build_arch}
+
if {${os.arch} == "i386"} {
set universal_archs_supported {i386 x86_64}
- if {![catch {sysctl hw.machine} result]} {
- set native_arch $result
+ if {![catch {exec sysctl -n hw.machine} result]} {
+ set native_arch ${result}
}
} elseif {${os.arch} == "powerpc"} {
set universal_archs_supported {ppc ppc64}
- if {![catch {sysctl hw.cpusubtype} result] && $result == 100} {
+ if {![catch {exec sysctl -n hw.cpusubtype} result] && $result == 100} {
set native_arch "ppc64"
} else {
@@ -314,6 +315,7 @@
-b 32 \
-A 22 \
-V 64 \
+ -t 2 \
-s gas_x86_32
lappend merger_configure_args(x86_64) --cflags=-m64 \
@@ -419,7 +421,7 @@
${worksrcpath}/configure
reinplace "s|-no-cpp-precomp||g" \
${worksrcpath}/CONFIG/src/atlcomp.txt
-
+
# Non-universal builds
if {${universal} == 0} {
@@ -526,6 +528,8 @@
# We build for the native architecture
if {${arch} == ${native_arch} && ${build_arch} != "ppc"} {
+ # Don’t add -march=native to a GCC build on an AVX
+ # machine because this flag overrides -msse4.2
if {${has_avx} == "no"} {
append gcc_supp_flags "-march=native "
@@ -534,7 +538,7 @@
}
# Non-native targets. Apply a priori flags.
-
+
# Clamp i386 optimization to -sse3 in universal builds and
# forces clang/gcc to use -m32 flag
if {${arch} == "i386" && ${native_arch} != "i386"} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130417/fa061738/attachment-0001.html>
More information about the macports-changes
mailing list