diff options
author | jlam <jlam> | 2004-09-08 08:42:35 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-09-08 08:42:35 +0000 |
commit | 86986f399ed3e1e51deaca13c62d0943204778f8 (patch) | |
tree | af3b281d5b396aed7a09c5d2e69b43a60a91769c /lang | |
parent | 9830d6501ab026436953d64cf210c71e930d8f7d (diff) | |
download | pkgsrc-86986f399ed3e1e51deaca13c62d0943204778f8.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')
-rw-r--r-- | lang/gcc3/Makefile.common | 16 |
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]*) |