[101433] trunk/dports/lang/apple-gcc40/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Thu Jan 10 15:58:41 PST 2013


Revision: 101433
          https://trac.macports.org/changeset/101433
Author:   jeremyhu at macports.org
Date:     2013-01-10 15:58:41 -0800 (Thu, 10 Jan 2013)
Log Message:
-----------
apple-gcc40: Fix some build failures by forcing gnu89

Modified Paths:
--------------
    trunk/dports/lang/apple-gcc40/Portfile

Modified: trunk/dports/lang/apple-gcc40/Portfile
===================================================================
--- trunk/dports/lang/apple-gcc40/Portfile	2013-01-10 23:51:03 UTC (rev 101432)
+++ trunk/dports/lang/apple-gcc40/Portfile	2013-01-10 23:58:41 UTC (rev 101433)
@@ -53,8 +53,12 @@
 #                       exposed in libc headers for fortified string functions.
 #                       Yes, we need to set both BOOT_CFLAGS and STAGE1_CFLAGS
 #                       because STAGE1_CFLAGS is used with xgcc for libgcc
-build.args-append BOOT_CFLAGS="-O2 -g -D_FORTIFY_SOURCE=0" STAGE1_CFLAGS="-O2 -fkeep-inline-functions -D_FORTIFY_SOURCE=0 -std=gnu89"
+build.args-append BOOT_CFLAGS="-O2 -g -D_FORTIFY_SOURCE=0 -std=gnu89" STAGE1_CFLAGS="-O2 -fkeep-inline-functions -D_FORTIFY_SOURCE=0 -std=gnu89"
 
+post-patch {
+	reinplace "s/-DIN_GCC/-DIN_GCC -std=gnu89/" ${worksrcpath}/gcc/Makefile.in
+}
+
 post-destroot {
 	file delete -force \
 		${destroot}${nprefix}/man ${destroot}${nprefix}/info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130110/e424fbaf/attachment.html>


More information about the macports-changes mailing list