pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/gcc3 Use OPSYSVARS to set --enable-shared or --di...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f2ce00483522
branches: trunk
changeset: 480386:f2ce00483522
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Sep 08 08:42:35 2004 +0000
description:
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:
lang/gcc3/Makefile.common | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diffs (30 lines):
diff -r d591583dfddf -r f2ce00483522 lang/gcc3/Makefile.common
--- a/lang/gcc3/Makefile.common Wed Sep 08 08:37:38 2004 +0000
+++ b/lang/gcc3/Makefile.common Wed Sep 08 08:42:35 2004 +0000
@@ -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 @@
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]*)
Home |
Main Index |
Thread Index |
Old Index