[80161] trunk/dports/lang/llvm-gcc42/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Tue Jul 5 10:09:13 PDT 2011


Revision: 80161
          http://trac.macports.org/changeset/80161
Author:   jeremyhu at macports.org
Date:     2011-07-05 10:09:13 -0700 (Tue, 05 Jul 2011)
Log Message:
-----------
llvm-gcc42: darwin11 build fixes

Maintainer ack via email

Modified Paths:
--------------
    trunk/dports/lang/llvm-gcc42/Portfile

Modified: trunk/dports/lang/llvm-gcc42/Portfile
===================================================================
--- trunk/dports/lang/llvm-gcc42/Portfile	2011-07-05 17:06:49 UTC (rev 80160)
+++ trunk/dports/lang/llvm-gcc42/Portfile	2011-07-05 17:09:13 UTC (rev 80161)
@@ -61,6 +61,14 @@
 
 destroot.target	        install install-info-host
 
+# STAGE1_CFLAGS="-O2 -fkeep-inline-functions" : from configure.ac
+# BOOT_CFLAGS="-O2 -g" : from Makefile.tpl
+# -D_FORTIFY_SOURCE=0 : The built compiler might not understand newer builtins
+#                       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"
+
 post-destroot {
         system "cd ${destroot}${prefix}/bin/ && ln -s llvm-gcc-4.2 llvm-gcc"
         system "cd ${destroot}${prefix}/bin/ && ln -s llvm-g++-4.2 llvm-g++"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110705/3939b4ef/attachment-0001.html>


More information about the macports-changes mailing list