summaryrefslogtreecommitdiff
path: root/lang/egcs
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1999-02-28 12:18:36 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1999-02-28 12:18:36 +0000
commit5e26fb96689e1e732fd556966172624212542558 (patch)
treef490fb0e3497f1489f044e5dc1965fef26b0bf31 /lang/egcs
parentSTL 3.0 rope fix. (diff)
Support building libstdc++ shared if "WANT_SHAREDLIBS" is defined.
Submitted by: dfr
Notes
Notes: svn path=/head/; revision=16938
Diffstat (limited to 'lang/egcs')
-rw-r--r--lang/egcs/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/egcs/Makefile b/lang/egcs/Makefile
index b834dcef9903..d0534238b138 100644
--- a/lang/egcs/Makefile
+++ b/lang/egcs/Makefile
@@ -4,7 +4,7 @@
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.45 1999/02/09 22:17:21 obrien Exp $
+# $Id: Makefile,v 1.46 1999/02/28 10:50:50 obrien Exp $
#
DISTNAME= egcs-1.1.2-pre2
@@ -41,6 +41,9 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld ${GNUHOST} \
--with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${GNUHOST}/${EGCS_REV}/include/g++
+.if defined(WANT_SHAREDLIBS)
+CONFIGURE_ARGS+= --enable-shared
+.endif
ALL_TARGET= bootstrap
MAN1= cccp.1 g++.1 g77.1 gcc.1
@@ -89,6 +92,10 @@ post-install:
${PREFIX}/lib/gcc-lib/${GNUHOST}/${EGCS_REV}
${MV} -f ${PREFIX}/lib/libstdc++.a \
${PREFIX}/lib/gcc-lib/${GNUHOST}/${EGCS_REV}/libstdc++.a
+.if defined(WANT_SHAREDLIBS)
+ ${MV} -f ${PREFIX}/lib/libstdc++.so* \
+ ${PREFIX}/lib/gcc-lib/${GNUHOST}/${EGCS_REV}
+.endif
if [ ! -f ${PREFIX}/info/dir ]; then \
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
fi