summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/lib/libstdc++/Makefile.bsd-wrapper9
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/lib/libstdc++/Makefile.bsd-wrapper b/gnu/lib/libstdc++/Makefile.bsd-wrapper
index 4e08e5585e9..00bcb430f2b 100644
--- a/gnu/lib/libstdc++/Makefile.bsd-wrapper
+++ b/gnu/lib/libstdc++/Makefile.bsd-wrapper
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.3 2004/01/13 10:57:35 espie Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.4 2004/02/09 02:29:26 drahn Exp $
LIBIBERTY_INCLUDES=${.CURDIR}/../libiberty/include
LIBIBERTY_SRCDIR=${.CURDIR}/../libiberty/src
@@ -31,6 +31,11 @@ CF= --cache-file=${GLOBAL_AUTOCONF_CACHE}
.else
CF=
.endif
+.ifdef NOPIC
+CF_SHARED= --disable-shared
+.else
+CF_SHARED= --enable-shared
+.endif
config.status:
PATH="/bin:/usr/bin:/sbin:/usr/sbin" \
@@ -39,7 +44,7 @@ config.status:
/bin/sh ${.CURDIR}/libstdc++/configure \
--prefix=/usr \
--disable-nls \
- --enable-shared \
+ ${CF_SHARED} \
--disable-multilib \
--with-gnu-ld \
--with-gxx-include-dir=${GXX_INCDIR} \