From 69714daa44b01b3d961c51bb77ee05f35338caa9 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 25 Aug 2012 23:08:24 +0000 Subject: For building libstdc++ and libsupc++, filter out any -stdlib=libc++ option from CXXFLAGS, otherwise these libraries will not build. Similarly, filter out any -std=xxx options that aren't supported. Submitted by: Yamaya Takashi MFC after: 2 weeks --- gnu/lib/libstdc++/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'gnu/lib/libstdc++/Makefile') diff --git a/gnu/lib/libstdc++/Makefile b/gnu/lib/libstdc++/Makefile index c3734429db0b4..14bb04191f1fe 100644 --- a/gnu/lib/libstdc++/Makefile +++ b/gnu/lib/libstdc++/Makefile @@ -22,6 +22,7 @@ CFLAGS+= -I${GCCLIB}/include -I${SRCDIR}/include -I. CFLAGS+= -frandom-seed=RepeatabilityConsideredGood CXXFLAGS+= -fno-implicit-templates -ffunction-sections -fdata-sections \ -Wno-deprecated +CXXFLAGS:= ${CXXFLAGS:N-stdlib=libc++:N-std=c++[01][13x]:N-std=gnu++[01][13x]} PO_CXXFLAGS= ${CXXFLAGS:N-ffunction-sections} DPADD= ${LIBM} -- cgit v1.3