Revision
80114
Author
jeremyhu@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

Diff

Modified: trunk/dports/lang/apple-gcc42/Portfile (80113 => 80114)


--- 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