summaryrefslogtreecommitdiff
path: root/lang/gcc3/Makefile.common
diff options
context:
space:
mode:
authorgrant <grant>2004-07-03 12:15:22 +0000
committergrant <grant>2004-07-03 12:15:22 +0000
commitac681fd4e19f26509ee0d803ef0e17001383937d (patch)
tree7d0c22d3fab6ad858174549520dffc098faa6bec /lang/gcc3/Makefile.common
parent46ca42d85b8dd6bb353f8b3c6b22329db7a292fb (diff)
downloadpkgsrc-ac681fd4e19f26509ee0d803ef0e17001383937d.tar.gz
always build gcc3 sub-packages with gcc3-c.
Diffstat (limited to 'lang/gcc3/Makefile.common')
-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"