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

jeremyhu at macports.org jeremyhu at macports.org
Sun Jan 13 11:13:54 PST 2013


Revision: 101546
          https://trac.macports.org/changeset/101546
Author:   jeremyhu at macports.org
Date:     2013-01-13 11:13:54 -0800 (Sun, 13 Jan 2013)
Log Message:
-----------
llvm-gcc42: Force libstdc++

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

Modified: trunk/dports/lang/llvm-gcc42/Portfile
===================================================================
--- trunk/dports/lang/llvm-gcc42/Portfile	2013-01-13 17:38:33 UTC (rev 101545)
+++ trunk/dports/lang/llvm-gcc42/Portfile	2013-01-13 19:13:54 UTC (rev 101546)
@@ -99,7 +99,6 @@
 
 # TODO: Better use of MacPorts dependencies
 build.env \
-    LANGUAGES="c,c++,objc,obj-c++" \
     LIBRARY_PATH="/usr/lib" \
     CPATH="/usr/include" \
     PATH="/bin:/usr/bin:/sbin:/usr/sbin" \
@@ -131,6 +130,16 @@
     RC_ProjectSourceVersion="[lindex [split ${version} .] 0]" \
     RC_ProjectSourceSubversion="[lindex [split ${version} .] 1]"
 
+if {[string match "*clang*" ${configure.compiler}]} {
+    # Build fails using libc++
+
+    build.args-delete \
+        CXX="${configure.cxx} -pipe"
+
+    build.args-append \
+        CXX="${configure.cxx} -pipe -stdlib=libstdc++"
+}
+
 set build_targets {}
 
 if {${os.major} > 8 || ${os.arch} == "i386"} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130113/264a4ef9/attachment.html>


More information about the macports-changes mailing list