[110548] trunk/dports/devel/gmp/Portfile
larryv at macports.org
larryv at macports.org
Sun Sep 1 17:31:55 PDT 2013
Revision: 110548
https://trac.macports.org/changeset/110548
Author: larryv at macports.org
Date: 2013-09-01 17:31:54 -0700 (Sun, 01 Sep 2013)
Log Message:
-----------
gmp: Clear configure.cxx_stdlib to make sure CXXFLAGS is undefined.
Modified Paths:
--------------
trunk/dports/devel/gmp/Portfile
Modified: trunk/dports/devel/gmp/Portfile
===================================================================
--- trunk/dports/devel/gmp/Portfile 2013-09-01 23:17:27 UTC (rev 110547)
+++ trunk/dports/devel/gmp/Portfile 2013-09-02 00:31:54 UTC (rev 110548)
@@ -35,16 +35,21 @@
configure.universal_args-delete --disable-dependency-tracking
-# Since we need to clear CXXFLAGS, add -stdlib=... to CXX
+# Clear all options that affect CFLAGS and CXXFLAGS, since the configure
+# 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.
+
if {[info exists configure.cxx_stdlib] &&
${configure.cxx_stdlib} ne {} &&
[string match *clang* ${configure.cxx}]
} then {
configure.cxx-append -stdlib=${configure.cxx_stdlib}
+ configure.cxx_stdlib
}
-
-# if CFLAGS and CXXFLAGS are undefined, configure script tries to build fastest library for build machine.
-# On PowerPC machines, CFLAGS must be empty to get -force_cpusubtype_ALL.
configure.cc_archflags
configure.cxx_archflags
configure.ld_archflags
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130901/6adf565e/attachment.html>
More information about the macports-changes
mailing list