summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorgrant <grant>2004-07-03 12:15:22 +0000
committergrant <grant>2004-07-03 12:15:22 +0000
commit7dcb74d17667edb9d9fa8e83df459f867a40af60 (patch)
tree7d0c22d3fab6ad858174549520dffc098faa6bec /lang
parent280ba22b19507355611e95b04b21be8fda937bbf (diff)
downloadpkgsrc-7dcb74d17667edb9d9fa8e83df459f867a40af60.tar.gz
always build gcc3 sub-packages with gcc3-c.
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc3/Makefile.common9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/gcc3/Makefile.common b/lang/gcc3/Makefile.common
index 0a2e6605355..0f237c72133 100644
--- a/lang/gcc3/Makefile.common
+++ b/lang/gcc3/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.7 2004/07/03 06:49:18 grant Exp $
+# $NetBSD: Makefile.common,v 1.8 2004/07/03 12:15:22 grant Exp $
GCC_VERSION= 3.3.4
DISTNAME= gcc-${GCC_VERSION}
@@ -98,6 +98,13 @@ CONFIGURE_ARGS+= --enable-shared
CONFIGURE_ARGS+= --disable-shared
.endif
+# gcc3 sub-packages must be built with gcc3.
+.if defined(PKGNAME) && empty(PKGNAME:Mgcc3-c-[0-9]*)
+ONLY_FOR_COMPILER+= gcc
+PKGSRC_COMPILER:= gcc ${PKGSRC_COMPILER}
+GCC_REQD+= ${GCC_VERSION}
+.endif
+
.include "../../mk/compiler.mk"
.if ${OPSYS} == "IRIX"