diff options
author | wiz <wiz> | 2011-08-20 21:33:27 +0000 |
---|---|---|
committer | wiz <wiz> | 2011-08-20 21:33:27 +0000 |
commit | 0758bc7f52f31a9c8c692cc84a4b511fb7930a4e (patch) | |
tree | f9c1c5bd53a9ff2680d920f5708fa89263d2026a /textproc | |
parent | 50592f439509963a94d1b92c27df1acde71d2d1e (diff) | |
download | pkgsrc-0758bc7f52f31a9c8c692cc84a4b511fb7930a4e.tar.gz |
Build fix: add -std=c++0x to the compiler flags for gcc-4.4+.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/FlightCrew/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/textproc/FlightCrew/Makefile b/textproc/FlightCrew/Makefile index 8cd95c602cf..f7d778e2154 100644 --- a/textproc/FlightCrew/Makefile +++ b/textproc/FlightCrew/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2011/07/29 19:32:18 ryoon Exp $ +# $NetBSD: Makefile,v 1.2 2011/08/20 21:33:27 wiz Exp $ # DISTNAME= FlightCrew-0.7.1-Code @@ -28,6 +28,12 @@ SUBST_FILES.fix-damaged= src/FlightCrew/tests/misc_tests/ConvertUtf8PathToBoostP SUBST_SED.fix-damaged+= -e "2,2s/^/\//" # commented-out SUBST_SED.fix-damaged+= -e "1,1d" # deleted +.include "../../mk/compiler.mk" +# GCC 4.4 and above needs this +.if !empty(PKGSRC_COMPILER:Mgcc) && !empty(CC_VERSION:Mgcc-4.[4-9]*) +_WRAP_EXTRA_ARGS.CXX+= -std=c++0x +.endif + .include "../../devel/googletest/buildlink3.mk" .include "../../devel/gmock/buildlink3.mk" .include "../../textproc/xerces-c/buildlink3.mk" |