svn commit: r202808 - in head/gnu/lib: libstdc++ libsupc++
Stephane E. Potvin
sepotvin at FreeBSD.org
Fri Jan 22 14:09:15 UTC 2010
Author: sepotvin
Date: Fri Jan 22 14:09:15 2010
New Revision: 202808
URL: http://svn.freebsd.org/changeset/base/202808
Log:
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
Modified:
head/gnu/lib/libstdc++/Makefile
head/gnu/lib/libsupc++/Makefile
Modified: head/gnu/lib/libstdc++/Makefile
==============================================================================
--- head/gnu/lib/libstdc++/Makefile Fri Jan 22 14:05:48 2010 (r202807)
+++ head/gnu/lib/libstdc++/Makefile Fri Jan 22 14:09:15 2010 (r202808)
@@ -21,6 +21,7 @@ CFLAGS+= -I${GCCLIB}/include -I${SRCDIR}
CFLAGS+= -frandom-seed=RepeatabilityConsideredGood
CXXFLAGS+= -fno-implicit-templates -ffunction-sections -fdata-sections \
-Wno-deprecated
+PO_CXXFLAGS= ${CXXFLAGS:N-ffunction-sections}
DPADD= ${LIBM}
LDADD= -lm
Modified: head/gnu/lib/libsupc++/Makefile
==============================================================================
--- head/gnu/lib/libsupc++/Makefile Fri Jan 22 14:05:48 2010 (r202807)
+++ head/gnu/lib/libsupc++/Makefile Fri Jan 22 14:09:15 2010 (r202808)
@@ -23,6 +23,7 @@ CFLAGS+= -I${GCCLIB}/include -I${SRCDIR}
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}/;}
More information about the svn-src-all
mailing list