summaryrefslogtreecommitdiff
path: root/mk/compiler/distcc.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-02 11:04:17 +0000
committerjlam <jlam@pkgsrc.org>2004-02-02 11:04:17 +0000
commit6f3185696f5e0d31b358dfd0644361b5f9b4a6c3 (patch)
treeec0beff5c60c43eafcaf803c090348a647254c59 /mk/compiler/distcc.mk
parent441289a9c089615b6b60fd9fb8e8734d7c0a8216 (diff)
downloadpkgsrc-6f3185696f5e0d31b358dfd0644361b5f9b4a6c3.tar.gz
Only prepend the compiler package location to the PATH if we actually
request a compiler that's supported by the named compiler package.
Diffstat (limited to 'mk/compiler/distcc.mk')
-rw-r--r--mk/compiler/distcc.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/compiler/distcc.mk b/mk/compiler/distcc.mk
index b166af4ca41..aa7507f49dd 100644
--- a/mk/compiler/distcc.mk
+++ b/mk/compiler/distcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: distcc.mk,v 1.6 2004/02/02 11:03:08 jlam Exp $
+# $NetBSD: distcc.mk,v 1.7 2004/02/02 11:04:17 jlam Exp $
.if !defined(COMPILER_DISTCC_MK)
COMPILER_DISTCC_MK= defined
@@ -41,9 +41,10 @@ _DISTCCBASE?= ${LOCALBASE}
.if exists(${_DISTCCBASE}/bin/distcc)
_DISTCC_DIR= ${WRKDIR}/.distcc
-PATH:= ${_DISTCC_DIR}/bin:${PATH}
-
_DISTCC_LINKS= # empty
+. if !empty(_LANGUAGES.distcc)
+PATH:= ${_DISTCC_DIR}/bin:${PATH}
+. endif
. if !empty(_LANGUAGES.distcc:Mc)
CC:= ${_DISTCC_DIR}/bin/${CC:T}
_DISTCC_LINKS+= CC