[142898] trunk/dports/devel/gmp/Portfile
mcalhoun at macports.org
mcalhoun at macports.org
Sat Dec 12 07:42:13 PST 2015
Revision: 142898
https://trac.macports.org/changeset/142898
Author: mcalhoun at macports.org
Date: 2015-11-26 12:05:39 -0800 (Thu, 26 Nov 2015)
Log Message:
-----------
gmp: prevent CCFLAGS from being stored in header files (see #49801)
Modified Paths:
--------------
trunk/dports/devel/gmp/Portfile
Modified: trunk/dports/devel/gmp/Portfile
===================================================================
--- trunk/dports/devel/gmp/Portfile 2015-11-26 18:14:52 UTC (rev 142897)
+++ trunk/dports/devel/gmp/Portfile 2015-11-26 20:05:39 UTC (rev 142898)
@@ -6,7 +6,7 @@
name gmp
version 6.0.0
-revision 1
+revision 2
categories devel math
license LGPL-3+
maintainers mcalhoun openmaintainer
@@ -63,8 +63,18 @@
# 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).
+# the following code must run BEFORE configure.cc is modified
+set configure_cc_save ${configure.cc}
+#
+# do not let configure set CC in gmp-h.in because we modify CC later and
+# we do not want these modifications to end up in the installed header file
+# ugly workaround for #49801
+# see ??? for upstream discussion
+post-patch {
+ reinplace "s|\"@CC@\"|\"${configure_cc_save}\"|g" ${worksrcpath}/gmp-h.in
+}
+
# Append the -stdlib flags to CXX, since we still want to select the C++ STL.
set cxx_stdlibflags {}
if {[string match *clang* ${configure.cxx}]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/505409ed/attachment.html>
More information about the macports-changes
mailing list