[80114] trunk/dports/lang/apple-gcc42/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Mon Jul 4 10:05:51 PDT 2011


Revision: 80114
          http://trac.macports.org/changeset/80114
Author:   jeremyhu at macports.org
Date:     2011-07-04 10:05:49 -0700 (Mon, 04 Jul 2011)
Log Message:
-----------
apple-gcc42: Fails to build with clang, so fall back to llvm-gcc

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

Modified: trunk/dports/lang/apple-gcc42/Portfile
===================================================================
--- trunk/dports/lang/apple-gcc42/Portfile	2011-07-04 15:30:09 UTC (rev 80113)
+++ trunk/dports/lang/apple-gcc42/Portfile	2011-07-04 17:05:49 UTC (rev 80114)
@@ -50,6 +50,11 @@
 	system "cd ${destroot}${prefix}/bin && ln -sf ${nprefix}/bin/gcc-apple-4.2 && ln -sf ${nprefix}/bin/cpp-apple-4.2"
 }
 
+# clang can't build gcc
+if {${configure.compiler} == "clang"} {
+    configure.compiler llvm-gcc-4.2 
+}
+
 livecheck.type		regex
 livecheck.url		[lindex ${master_sites} 0]
 livecheck.regex		gcc-(\\d+(?:\\.\\d+)*)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110704/462b1b98/attachment.html>


More information about the macports-changes mailing list