summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-01-19 03:54:38 +0000
committeremaste <emaste@FreeBSD.org>2016-01-19 03:54:38 +0000
commitefa39bda1b02d9056f6f52efed6dc85673c3f6c7 (patch)
tree11a06a927945db66731f73b00d1ca397c5aea254 /gnu
parent730341be8a56c9ab6d81cb4c4edd37af0f2d61cb (diff)
downloadFreeBSD-src-efa39bda1b02d9056f6f52efed6dc85673c3f6c7.zip
FreeBSD-src-efa39bda1b02d9056f6f52efed6dc85673c3f6c7.tar.gz
Remove local override for .cpp.So rule
The standard bsd.lib.mk rule is suitable for libgcc_s's C++ source. The local rule had the following non-functional argument differences or additions: 1. -DSHARED (rather than -DPIC from bsd.lib.mk) The C++ sources don't have an #ifdef for either one. 2. -fexceptions This is enabled by default for C++ so does not need to be set explicitly. 3. -D__GLIBC__=3 Not used by LLVM libunwind. 4. -DElfW=__ElfN LLVM libunwind provides its own definition. PR: 206381 Differential Revision: The FreeBSD Foundation
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/libgcc/Makefile5
1 files changed, 0 insertions, 5 deletions
diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile
index ad4e0f1..040fdff 100644
--- a/gnu/lib/libgcc/Makefile
+++ b/gnu/lib/libgcc/Makefile
@@ -206,7 +206,6 @@ CC_P = ${CC} -c ${CFLAGS} ${HIDE} -p -fPIC
CC_S = ${CC} -c ${CFLAGS} ${PICFLAG} -DSHARED
CXX_T = ${CXX} -c ${CXXFLAGS} ${HIDE} -fPIC
CXX_P = ${CXX} -c ${CXXFLAGS} ${HIDE} -p -fPIC
-CXX_S = ${CXX} -c ${CXXFLAGS} ${PICFLAG} -DSHARED
#-----------------------------------------------------------------------
#
@@ -337,10 +336,6 @@ ${_src:R:S/$/.po/}: ${_src} ${COMMONHDRS}
${_src:R:S/$/.So/}: ${_src} ${COMMONHDRS}
${CC_S} ${EH_CFLAGS} -o ${.TARGET} ${.IMPSRC}
.endfor
-.for _src in ${LIB2ADDEHSHARED:M*.cpp}
-${_src:R:S/$/.So/}: ${_src} ${COMMONHDRS}
- ${CXX_S} ${EH_CFLAGS} -o ${.TARGET} ${.IMPSRC}
-.endfor
#-----------------------------------------------------------------------
OpenPOWER on IntegriCloud