diff options
| author | mrg <mrg@NetBSD.org> | 2003-07-26 14:55:12 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2003-07-26 14:55:12 +0000 |
| commit | 5a9a1bb7686816a1ebd1f71e4b3296aa96b8ad44 (patch) | |
| tree | d49922dc264522d1fbf9da5c258f9094f560eb3b /gnu/lib/libsupc++ | |
| parent | 9a2ca8e117e2b5fcb4c096589c0172351ea541ef (diff) | |
- build/install a libsupc++.a
- clean up commented & wrong rules
- find the right bits/ headers for sparc64 & arm
- make sure libsupc++/libstdc++ have all the symbols from libiberty they want
- disable the build of libstdc++ for now (but keep the includes installing)
Diffstat (limited to 'gnu/lib/libsupc++')
| -rw-r--r-- | gnu/lib/libsupc++/Makefile | 39 | ||||
| -rw-r--r-- | gnu/lib/libsupc++/Makefile.common | 22 |
2 files changed, 61 insertions, 0 deletions
diff --git a/gnu/lib/libsupc++/Makefile b/gnu/lib/libsupc++/Makefile new file mode 100644 index 00000000000..36f9e79a00a --- /dev/null +++ b/gnu/lib/libsupc++/Makefile @@ -0,0 +1,39 @@ +# $NetBSD: Makefile,v 1.1 2003/07/26 14:55:15 mrg Exp $ + +REQUIRETOOLS= yes +NOLINT= # defined +NOPIC= # defined +NOPROFILE= # defined + +.include <bsd.own.mk> + +LIB= supc++ + +.if exists(${.CURDIR}/../libstdc++-v3/arch/${MACHINE_ARCH}/defs.mk) && ${MKGCC} != "no" +.include "${.CURDIR}/../libstdc++-v3/arch/${MACHINE_ARCH}/defs.mk" + +SHLIB_MAJOR= 0 +SHLIB_MINOR= 0 + +.include "${.CURDIR}/../libsupc++/Makefile.common" + +SRCS= ${LIBSUPCXXSRCS} xmalloc.c +CXXFLAGS+= ${G_SECTION_FLAGS} + +.include <bsd.lib.mk> + +.PATH: ${DIST}/libstdc++-v3/src \ + ${DIST}/libstdc++-v3/libmath \ + ${DIST}/libstdc++-v3/libsupc++ \ + ${DIST}/libiberty \ + ${.CURDIR}/../libstdc++-v3/arch/${MACHINE_ARCH} + +${OBJS}: ${.CURDIR}/../libstdc++-v3/arch/${MACHINE_ARCH}/defs.mk +.else +.include <bsd.prog.mk> # do nothing +.endif + +.if (${OBJECT_FMT} == "a.out") +LDADD= ${DESTDIR}/usr/lib/c++rt0.o +DPADD= ${DESTDIR}/usr/lib/c++rt0.o +.endif diff --git a/gnu/lib/libsupc++/Makefile.common b/gnu/lib/libsupc++/Makefile.common new file mode 100644 index 00000000000..15c147a1b58 --- /dev/null +++ b/gnu/lib/libsupc++/Makefile.common @@ -0,0 +1,22 @@ +# $NetBSD: Makefile.common,v 1.1 2003/07/26 14:55:17 mrg Exp $ + +DIST= ${NETBSDSRCDIR}/gnu/dist/gcc +GNUHOSTDIST= ${DIST} + +LIBMATHSRCS= ${G_libmath_la_SOURCES} ${G_libmath_la_LIBADD:.lo=.c} +LIBSTDCXXSRCS= ${G_SRC_SOURCES} +LIBSUPCXXSRCS= ${G_LIBSUPCXX_SOURCES} ${G_LIBSUPCXX_C_SOURCES} + +CPPFLAGS+= -nostdinc++ -I${.CURDIR}/../libstdc++-v3/arch/${MACHINE_ARCH} \ + -I${DIST}/gcc -I${DIST}/include \ + -I${DIST}/libstdc++-v3/libsupc++ \ + -I${NETBSDSRCDIR}/gnu/usr.bin/gcc3/libiberty \ + -DHAVE_STDLIB_H -DHAVE_STRING_H + +COPTS.cxa_demangle.c=-DIN_GLIBCPP_V3 +COPTS.dyn-string.c=-DIN_GLIBCPP_V3 + +CLEANFILES+= cxa_demangle.c +cxa_demangle.c: ${DIST}/libiberty/cp-demangle.c + rm -f ${.TARGET} + ln -s $> ${.TARGET} |
