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 <yamayan@kbh.biglobe.ne.jp> MFC after: 2 weeks
This commit is contained in:
parent
cf977ac20a
commit
69714daa44
@ -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}
|
||||
|
@ -24,6 +24,7 @@ CFLAGS+= -I${GCCLIB}/include -I${SRCDIR} -I${GCCDIR}
|
||||
CFLAGS+= -I${.CURDIR}/../libstdc++ -I.
|
||||
CFLAGS+= -frandom-seed=RepeatabilityConsideredGood
|
||||
CXXFLAGS+= -fno-implicit-templates -ffunction-sections -fdata-sections
|
||||
CXXFLAGS:= ${CXXFLAGS:N-stdlib=libc++:N-std=c++[01][13x]:N-std=gnu++[01][13x]}
|
||||
PO_CXXFLAGS= ${CXXFLAGS:N-ffunction-sections}
|
||||
|
||||
HDRS= exception new typeinfo cxxabi.h exception_defines.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user