summaryrefslogtreecommitdiff
path: root/mk/misc
diff options
context:
space:
mode:
authorrillig <rillig>2006-12-03 21:58:20 +0000
committerrillig <rillig>2006-12-03 21:58:20 +0000
commit8af7979bebc8706fb2d848d57aa55e0ca9fff71c (patch)
tree832b7b01855eae35e104205df482434e22f63ea3 /mk/misc
parenta64ec464c6de7ac0964a9bbf3e2cea9482139632 (diff)
downloadpkgsrc-8af7979bebc8706fb2d848d57aa55e0ca9fff71c.tar.gz
Ignore ccache and distcc in PKGSRC_COMPILER for the check for
ONLY_FOR_COMPILER. For the opposite test, using NOT_FOR_COMPILER, they may still be specified. Fixes PR 35173.
Diffstat (limited to 'mk/misc')
-rw-r--r--mk/misc/can-be-built-here.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/misc/can-be-built-here.mk b/mk/misc/can-be-built-here.mk
index 93bc309f53d..15e5193ffa5 100644
--- a/mk/misc/can-be-built-here.mk
+++ b/mk/misc/can-be-built-here.mk
@@ -1,4 +1,4 @@
-# $NetBSD: can-be-built-here.mk,v 1.2 2006/12/03 21:47:26 rillig Exp $
+# $NetBSD: can-be-built-here.mk,v 1.3 2006/12/03 21:58:20 rillig Exp $
#
# This file checks whether a package can be built in the current pkgsrc
# environment. It checks the following variables:
@@ -43,7 +43,9 @@ _CBBH_MSGS.ocomp= "This package is only available for these compilers: "${ONLY_F
_CBBH.ocomp= yes
.if defined(ONLY_FOR_COMPILER) && !empty(ONLY_FOR_COMPILER)
_CBBH.ocomp= yes
-. for pc in ${PKGSRC_COMPILER}
+# Ignore compilers that only cache or distribute the real work that has
+# to be done (see PR 35173).
+. for pc in ${PKGSRC_COMPILER:Nccache:Ndistcc}
. if empty(ONLY_FOR_COMPILER:M${pc})
_CBBH.ocomp= no
. endif