summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libsupc++/Makefile
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-05-29 00:45:51 +0000
committerpeter <peter@FreeBSD.org>2002-05-29 00:45:51 +0000
commitf974920a72ceff59c6cb7b6af7ff98d51ba4baf7 (patch)
tree1491f48692dd3f9d8d16806993c7cb0306d8e486 /gnu/lib/libsupc++/Makefile
parentd314b7908f360745be357b38a05b8f57addb265d (diff)
downloadFreeBSD-src-f974920a72ceff59c6cb7b6af7ff98d51ba4baf7.zip
FreeBSD-src-f974920a72ceff59c6cb7b6af7ff98d51ba4baf7.tar.gz
Add some build glue for libstdc++. I'm not a C++ person, but this seems
to work at least for the non-hairy stuff. The main wrinkle here is that a whole mess of include files get installed and under different names. An earlier version of this built a shadow include tree first in the obj directory, but this depends on the 'make includes' functionality. More tweaking is certainly going to be needed.
Diffstat (limited to 'gnu/lib/libsupc++/Makefile')
-rw-r--r--gnu/lib/libsupc++/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/gnu/lib/libsupc++/Makefile b/gnu/lib/libsupc++/Makefile
index 2e5b1cc..681b1d8 100644
--- a/gnu/lib/libsupc++/Makefile
+++ b/gnu/lib/libsupc++/Makefile
@@ -1,9 +1,12 @@
# $FreeBSD$
-SRCDIR= ${.CURDIR}/../../../contrib/libstdc++-v3
-.PATH: ${SRCDIR} ${SRCDIR}/../../gcc
+GCCDIR= ${.CURDIR}/../../../contrib/gcc
+SRCDIR= ${.CURDIR}/../../../contrib/libstdc++/libsupc++
-LIB= stdc++
+.PATH: ${SRCDIR} ${GCCDIR}
+
+# Static only.
+LIB= supc++
SRCS= del_op.cc del_opnt.cc del_opv.cc del_opvnt.cc \
eh_alloc.cc eh_aux_runtime.cc eh_catch.cc eh_exception.cc \
eh_globals.cc eh_personality.cc eh_terminate.cc eh_throw.cc eh_type.cc \
@@ -14,12 +17,11 @@ SRCS= del_op.cc del_opnt.cc del_opv.cc del_opvnt.cc \
SRCS+= cp-demangle.c dyn-string.c
CFLAGS+= -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H
-CFLAGS+= -I${SRCDIR}/../../gcc
-CXXFLAGS+= -nostdinc++ \
- -fno-implicit-templates -ffunction-sections -fdata-sections
+CFLAGS+= -I${SRCDIR} -I${GCCDIR} -I${.CURDIR}/../libstdc++
+CXXFLAGS+= -fno-implicit-templates -ffunction-sections -fdata-sections
HDRS= exception new typeinfo cxxabi.h exception_defines.h
INCS= ${HDRS:S;^;${SRCDIR}/;}
-INCSDIR=${INCLUDEDIR}/g++-v3
+INCSDIR=${INCLUDEDIR}/g++
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud