[140232] trunk/dports/devel/ncurses/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Sun Sep 13 03:45:13 PDT 2015
Revision: 140232
https://trac.macports.org/changeset/140232
Author: jeremyhu at macports.org
Date: 2015-09-13 03:45:12 -0700 (Sun, 13 Sep 2015)
Log Message:
-----------
ncurses: Fix build failure on older systems using libc++
Modified Paths:
--------------
trunk/dports/devel/ncurses/Portfile
Modified: trunk/dports/devel/ncurses/Portfile
===================================================================
--- trunk/dports/devel/ncurses/Portfile 2015-09-13 06:20:43 UTC (rev 140231)
+++ trunk/dports/devel/ncurses/Portfile 2015-09-13 10:45:12 UTC (rev 140232)
@@ -39,6 +39,13 @@
--with-pkg-config-libdir="${prefix}/lib/pkgconfig" \
--disable-mixed-case
+# Prevent -lstdc++ from creeping into the build when not needed
+if {[string match *clang* ${configure.cxx}]} {
+ configure.env-append \
+ CXXLIBS=-stdlib=${configure.cxx_stdlib} \
+ cf_cv_libstdcpp=no
+}
+
if {[variant_isset universal]} {
# check that this doesn't start breaking anything with new versions
post-configure {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150913/03701777/attachment.html>
More information about the macports-changes
mailing list