[86459] trunk/dports/lang/ghc/Portfile
ryandesign at macports.org
ryandesign at macports.org
Wed Oct 26 01:11:13 PDT 2011
Revision: 86459
http://trac.macports.org/changeset/86459
Author: ryandesign at macports.org
Date: 2011-10-26 01:11:13 -0700 (Wed, 26 Oct 2011)
Log Message:
-----------
ghc: use gcc-4.2 instead of llvm-gcc-4.2 or clang, and fall back to apple-gcc42; see #31781
Modified Paths:
--------------
trunk/dports/lang/ghc/Portfile
Modified: trunk/dports/lang/ghc/Portfile
===================================================================
--- trunk/dports/lang/ghc/Portfile 2011-10-26 08:03:25 UTC (rev 86458)
+++ trunk/dports/lang/ghc/Portfile 2011-10-26 08:11:13 UTC (rev 86459)
@@ -346,8 +346,6 @@
return -code error "Unrecognized build architecture on Snow Leopard"
}
- configure.compiler gcc-4.2
-
patchfiles-append patch-snowleopard-compiler-cmm-CLabel.hs.diff \
patch-snowleopard-compiler-main-DynFlags.hs.diff \
patch-snowleopard-ghc-ghc-bin.cabal.in.diff \
@@ -358,6 +356,18 @@
}
+if {${configure.compiler} == "clang" ||
+ ${configure.compiler} == "llvm-gcc-4.2"} {
+ configure.compiler gcc-4.2
+ if {![file executable ${configure.cc}]} {
+ depends_build-append port:apple-gcc42
+ configure.compiler apple-gcc-4.2
+ # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2
+ configure.cxx ${prefix}/bin/g++-apple-4.2
+ }
+}
+
+
post-extract {
system "tar jxf ${distpath}/testsuite-${version}.tar.bz2 -C ${worksrcpath}"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111026/008c30f3/attachment.html>
More information about the macports-changes
mailing list