summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2011-03-31 06:07:19 +0000
committeradam <adam@pkgsrc.org>2011-03-31 06:07:19 +0000
commit16719c233cb8544e716acbf50a790cb0909b27c8 (patch)
tree39af1c83af7578190110d3ca7ff180ba81cce234 /devel
parent689ea8ab823ae864b3321f1c40ca4b440d080e78 (diff)
downloadpkgsrc-16719c233cb8544e716acbf50a790cb0909b27c8.tar.gz
Restrict -std=c++0x to GCC 4.4 and above; fix for PR#42746
Diffstat (limited to 'devel')
-rw-r--r--devel/boost-jam/bjam.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/devel/boost-jam/bjam.mk b/devel/boost-jam/bjam.mk
index d0aa9d2e6bf..6de916b989a 100644
--- a/devel/boost-jam/bjam.mk
+++ b/devel/boost-jam/bjam.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bjam.mk,v 1.10 2011/03/30 08:58:57 adam Exp $
+# $NetBSD: bjam.mk,v 1.11 2011/03/31 06:07:19 adam Exp $
.include "../../devel/boost-jam/buildlink3.mk"
@@ -14,8 +14,11 @@ BJAM_ARGS+= --builddir=${WRKSRC}/build
BJAM_ARGS+= --layout=system
BJAM_ARGS+= --toolset=${BOOST_TOOLSET}
BJAM_ARGS+= --disable-long-double
-BJAM_ARGS+= cxxflags=-std=c++0x
BJAM_ARGS+= ${BJAM_BUILD}
+# GCC 4.4 and above needs this
+.if !empty(PKGSRC_COMPILER:Mgcc) && !empty(CC_VERSION:Mgcc-4.[4-9]*)
+BJAM_ARGS+= cxxflags=-std=c++0x
+.endif
BJAM_BUILD+= release
BJAM_BUILD+= threading=multi