diff options
author | peter <peter@FreeBSD.org> | 1998-10-11 04:56:03 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-10-11 04:56:03 +0000 |
commit | 9f6be4544f509927259a82167ec7218315a7bf97 (patch) | |
tree | 02f51e4839e79e10a0dbe909ce48f56db90af7bc /gnu/lib/libstdc++ | |
parent | 02ed78af40e9703d08142808274ea75e23ef0119 (diff) | |
download | FreeBSD-src-9f6be4544f509927259a82167ec7218315a7bf97.zip FreeBSD-src-9f6be4544f509927259a82167ec7218315a7bf97.tar.gz |
libg++ and libstdc++ also have internal calls to libm. Programs using the
shared versions should not need to add -lm unless the program uses libm
itself. Strictly speaking, libg++ depends on libstdc++, but libstdc++
has dynamic dependencies on some exception tables and binutils doesn't
seem to like it when a secondary library has undefined references. It
doesn't seem to care when -lstdc++ is added on the command line to ld
though. Anyway, the c++ driver adds -lstdc++ explicitly, so that should
be OK. c++ also adds -lm explicitly too, even though it wouldn't need
to now. [except for statically linked binaries as .a files don't have an
equivalent of automatic internal shared object dependencies.]
Diffstat (limited to 'gnu/lib/libstdc++')
-rw-r--r-- | gnu/lib/libstdc++/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/lib/libstdc++/Makefile b/gnu/lib/libstdc++/Makefile index 6613565..891dfa3 100644 --- a/gnu/lib/libstdc++/Makefile +++ b/gnu/lib/libstdc++/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.8 1998/02/25 01:23:28 bde Exp $ +# $Id: Makefile,v 1.9 1998/03/20 15:10:59 bde Exp $ # GPPDIR= ${.CURDIR}/../../../contrib/libg++ @@ -15,6 +15,9 @@ CFLAGS+= -I${GPPDIR}/include -I${DESTDIR}/usr/include/g++ -I. CXXFLAGS+= -I${GPPDIR}/include -I${GPPDIR}/libio -I${GPPDIR}/libstdc++ CXXFLAGS+= -fno-implicit-templates +LDADD+= -lm +DPADD+= ${LIBM} + DIR= ${GPPDIR}/libstdc++ HDRS= cassert cctype cerrno cfloat ciso646 climits clocale cmath complex \ |