summaryrefslogtreecommitdiff
path: root/lang/gcc3
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-09-08 08:42:35 +0000
committerjlam <jlam@pkgsrc.org>2004-09-08 08:42:35 +0000
commite7312f5c2db8f7b5b1187ce77147b56573d9b72d (patch)
treeaf3b281d5b396aed7a09c5d2e69b43a60a91769c /lang/gcc3
parentae0b6d6ceaf637fa4e67f1f709cdc04bf9639ba0 (diff)
downloadpkgsrc-e7312f5c2db8f7b5b1187ce77147b56573d9b72d.tar.gz
Use OPSYSVARS to set --enable-shared or --disable-shared based on the
value of ${OPSYS}. Also, allow FreeBSD to build the GCC shared libraries.
Diffstat (limited to 'lang/gcc3')
-rw-r--r--lang/gcc3/Makefile.common16
1 files changed, 9 insertions, 7 deletions
diff --git a/lang/gcc3/Makefile.common b/lang/gcc3/Makefile.common
index 934abda5403..4055635d1b1 100644
--- a/lang/gcc3/Makefile.common
+++ b/lang/gcc3/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.9 2004/07/30 20:48:39 jlam Exp $
+# $NetBSD: Makefile.common,v 1.10 2004/09/08 08:42:35 jlam Exp $
GCC_VERSION= 3.3.4
DISTNAME= gcc-${GCC_VERSION}
@@ -91,12 +91,14 @@ BINUTILS_PREFIX_DEFAULT= ${LOCALBASE}
CONFIGURE_ARGS+= --with-as=${BINUTILS_PREFIX}/${MACHINE_GNU_PLATFORM}/bin/as
.endif
-.if ${OPSYS} == "NetBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "SunOS" || \
- ${OPSYS} == "IRIX"
-CONFIGURE_ARGS+= --enable-shared
-.else
-CONFIGURE_ARGS+= --disable-shared
-.endif
+OPSYSVARS+= GCC_SHARED_ARG
+GCC_SHARED_ARG.${OPSYS}?= --disable-shared
+GCC_SHARED_ARG.FreeBSD= --enable-shared
+GCC_SHARED_ARG.IRIX= --enable-shared
+GCC_SHARED_ARG.Linux= --enable-shared
+GCC_SHARED_ARG.NetBSD= --enable-shared
+GCC_SHARED_ARG.SunOS= --enable-shared
+CONFIGURE_ARGS+= ${GCC_SHARED_ARG}
# gcc3 sub-packages must be built with gcc3.
.if defined(PKGNAME) && empty(PKGNAME:Mgcc3-c-[0-9]*)