summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libg++
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1995-07-05 15:04:47 +0000
committerdfr <dfr@FreeBSD.org>1995-07-05 15:04:47 +0000
commitf602814c3c734a5ef359ebe9149c5973c44dfa95 (patch)
tree5499867cfb0b3eaee8ef8ba25f194450396ed46a /gnu/lib/libg++
parent3c221d9da76aa48a9496a5c99298f07e896f8087 (diff)
downloadFreeBSD-src-f602814c3c734a5ef359ebe9149c5973c44dfa95.zip
FreeBSD-src-f602814c3c734a5ef359ebe9149c5973c44dfa95.tar.gz
Define CPLUSPLUSLIB so that bsd.lib.mk will add c++rt0.o to call
constructors and destructors. Add -lgcc_pic to LDADD for the shared library since C++ code uses stuff from libgcc and we no longer have a shared libgcc. Should this be done by CPLUSPLUSLIB?
Diffstat (limited to 'gnu/lib/libg++')
-rw-r--r--gnu/lib/libg++/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/lib/libg++/Makefile b/gnu/lib/libg++/Makefile
index a8c078d..d27ac4f 100644
--- a/gnu/lib/libg++/Makefile
+++ b/gnu/lib/libg++/Makefile
@@ -1,5 +1,5 @@
#
-# $Id: Makefile,v 1.8 1995/03/20 09:38:21 rgrimes Exp $
+# $Id: Makefile,v 1.9 1995/05/08 16:10:34 ache Exp $
#
SRCS= bitand.c bitany.c bitblt.c bitclear.c bitcopy.c bitcount.c \
bitinvert.c bitlcomp.c bitset1.c bitxor.c cleanup.c except.c \
@@ -24,11 +24,12 @@ SRCS+= ACG.cc AllocRing.cc Binomial.cc BitSet.cc BitString.cc Complex.cc \
LIB= g++
SHLIB_MAJOR= 3
SHLIB_MINOR= 0
+CPLUSPLUSLIB= 1 # include c++rt0.o for constructors
NOMAN= noman
CFLAGS+= -nostdinc -I${.CURDIR}/include -I/usr/include
CXXFLAGS+= -I${.CURDIR}/include -I/usr/include/g++ -I/usr/include \
-nostdinc++
-LDADD+= -lcurses -lcompat
+LDADD+= -lcurses -lcompat -lgcc_pic
DPADD+= ${LIBCURSES} ${LIBCOMPAT}
.PATH: ${.CURDIR}/libiberty ${.CURDIR}/libio ${.CURDIR}/libg++ ${.CURDIR}/librx
OpenPOWER on IntegriCloud