summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-20 07:10:06 +0000
committerjlam <jlam>2004-02-20 07:10:06 +0000
commit04bee151aa41353043b236fd0ba0ba48f692781f (patch)
tree5d81f1442d363f726a5a4db1a54c1374e7c367a9 /mk
parent5c197031eda99b30c47de4ef56c95523fabaa2bb (diff)
downloadpkgsrc-04bee151aa41353043b236fd0ba0ba48f692781f.tar.gz
If for some reason, _GCC_REQD doesn't match any of the version pattern
lists, then just assume that we need gcc3. The rest of the code in the file assumes that we either need gcc2 or gcc3, so this provides a fall-through, default value.
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler/gcc.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index d9a7bd11b7e..3efa0645c0d 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.53 2004/02/18 13:32:38 jlam Exp $
+# $NetBSD: gcc.mk,v 1.54 2004/02/20 07:10:06 jlam Exp $
.if !defined(COMPILER_GCC_MK)
COMPILER_GCC_MK= defined
@@ -103,6 +103,9 @@ _NEED_GCC3?= no
_NEED_GCC3= yes
. endif
.endfor
+.if !empty(_NEED_GCC2:M[nN][oO]) && !empty(_NEED_GCC3:M[nN][oO])
+_NEED_GCC3= yes
+.endif
# Assume by default that GCC will only provide a C compiler.
LANGUAGES.gcc?= c