[142889] trunk/dports/devel/gmp/Portfile
mcalhoun at macports.org
mcalhoun at macports.org
Sat Dec 12 07:39:56 PST 2015
Revision: 142889
https://trac.macports.org/changeset/142889
Author: mcalhoun at macports.org
Date: 2015-11-26 04:19:46 -0800 (Thu, 26 Nov 2015)
Log Message:
-----------
gmp: comment and whitespace changes
Modified Paths:
--------------
trunk/dports/devel/gmp/Portfile
Modified: trunk/dports/devel/gmp/Portfile
===================================================================
--- trunk/dports/devel/gmp/Portfile 2015-11-26 12:11:51 UTC (rev 142888)
+++ trunk/dports/devel/gmp/Portfile 2015-11-26 12:19:46 UTC (rev 142889)
@@ -58,10 +58,12 @@
# script tries to build the fastest library for the build machine if
# CFLAGS and CXXFLAGS are undefined.
#
-# Append the -stdlib flags to CXX, since we still want to select the C++ STL.
+# On PowerPC machines, CFLAGS must be empty to get -force_cpusubtype_ALL.
#
-# On PowerPC machines, CFLAGS must be empty to get -force_cpusubtype_ALL.
+# Append all extra flags to compiler name, which is a far from ideal solution.
+# One result is that unwanted compiler flags get put in the header file (#49801).
+# Append the -stdlib flags to CXX, since we still want to select the C++ STL.
set cxx_stdlibflags {}
if {[string match *clang* ${configure.cxx}]} {
configure.cxx-append -stdlib=${configure.cxx_stdlib}
@@ -115,13 +117,13 @@
# Since CFLAGS and CXXFLAGS must be empty, append -arch ... to CC and CXX.
merger_arch_compiler yes
-
+
# -arch i386 on causes the test suite to fail, so override muniversal_get_arch_flag in muniversal portgroup
# Only append -arch ... to compiler if cross compiling.
# i386 code is generated by setting ABI=32
proc muniversal_get_arch_flag {arch {fortran ""}} {
global os.arch
-
+
if {${os.arch} eq "i386" && (${arch} eq "i386" || ${arch} eq "x86_64")} {
set archf ""
} elseif {${os.arch} eq "powerpc" && (${arch} eq "ppc" && ${arch} eq "ppc64")} {
@@ -131,7 +133,7 @@
}
return ${archf}
}
-
+
# universal_archs_to_use might not be set before pre-fetch.
pre-destroot {
global merger_dont_diff merger_configure_env
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/c8ddde29/attachment-0001.html>
More information about the macports-changes
mailing list