diff options
author | sepotvin <sepotvin@FreeBSD.org> | 2010-01-22 14:09:15 +0000 |
---|---|---|
committer | sepotvin <sepotvin@FreeBSD.org> | 2010-01-22 14:09:15 +0000 |
commit | 48300c30dd41552171602ae03b36e07d3f89d2ed (patch) | |
tree | 1185f080d2d56566a47a74eff06b50cc5b6fe2a5 /gnu/lib | |
parent | 409b16e99aff586b761fd71b9a56678a93f83b23 (diff) | |
download | FreeBSD-src-48300c30dd41552171602ae03b36e07d3f89d2ed.zip FreeBSD-src-48300c30dd41552171602ae03b36e07d3f89d2ed.tar.gz |
Use the new PO_CXXFLAGS from r202807 to remove the '-ffunction-sections'
flag when compiling profiled objects as it's ignored by the compiler.
This removes the associated warning for each file compiled.
MFC after: 1 month
Diffstat (limited to 'gnu/lib')
-rw-r--r-- | gnu/lib/libstdc++/Makefile | 1 | ||||
-rw-r--r-- | gnu/lib/libsupc++/Makefile | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gnu/lib/libstdc++/Makefile b/gnu/lib/libstdc++/Makefile index e2a774e..419d51c 100644 --- a/gnu/lib/libstdc++/Makefile +++ b/gnu/lib/libstdc++/Makefile @@ -21,6 +21,7 @@ CFLAGS+= -I${GCCLIB}/include -I${SRCDIR}/include -I. CFLAGS+= -frandom-seed=RepeatabilityConsideredGood CXXFLAGS+= -fno-implicit-templates -ffunction-sections -fdata-sections \ -Wno-deprecated +PO_CXXFLAGS= ${CXXFLAGS:N-ffunction-sections} DPADD= ${LIBM} LDADD= -lm diff --git a/gnu/lib/libsupc++/Makefile b/gnu/lib/libsupc++/Makefile index 54e96b8..fc024e8 100644 --- a/gnu/lib/libsupc++/Makefile +++ b/gnu/lib/libsupc++/Makefile @@ -23,6 +23,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 +PO_CXXFLAGS= ${CXXFLAGS:N-ffunction-sections} HDRS= exception new typeinfo cxxabi.h exception_defines.h INCS= ${HDRS:S;^;${SRCDIR}/;} |