summaryrefslogtreecommitdiff
path: root/mk/compiler/distcc.mk
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-06 04:37:02 +0000
committerjlam <jlam>2004-02-06 04:37:02 +0000
commit59eb21ba1124fceff86c7afb4257da4ccc2937c2 (patch)
treef6ef70f7dd739d99171898ff7944f83d524e3f1e /mk/compiler/distcc.mk
parent025f76788eaf5394742f50cd9b0f22cbe2d56d5f (diff)
downloadpkgsrc-59eb21ba1124fceff86c7afb4257da4ccc2937c2.tar.gz
Hiding the PATH from certain phases of the build only accidentally worked
due to a type on gcc.mk that causes the ${_GCC_PREFIX}/bin to always be prepended to the PATH. The problem that was hiding was "make" resolving to ${TOOLS_DIR}/bin/make if the package used GNU make, which broke building since the package Makefile is a BSD Makefile and we passed PATH to some phases of the build. Fix this by expanding MAKE to the full path to ${MAKE} in bsd.prefs.mk. We also garbage collect the now useless checks for PHASES_AFTER_BUILDLINK that cluttered the PREPEND_PATH code.
Diffstat (limited to 'mk/compiler/distcc.mk')
-rw-r--r--mk/compiler/distcc.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/mk/compiler/distcc.mk b/mk/compiler/distcc.mk
index c93040344d8..b256179d4ce 100644
--- a/mk/compiler/distcc.mk
+++ b/mk/compiler/distcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: distcc.mk,v 1.12 2004/02/06 03:04:50 jlam Exp $
+# $NetBSD: distcc.mk,v 1.13 2004/02/06 04:37:02 jlam Exp $
.if !defined(COMPILER_DISTCC_MK)
COMPILER_DISTCC_MK= one
@@ -58,8 +58,7 @@ COMPILER_DISTCC_MK+= two
. if !empty(_USE_DISTCC:M[yY][eE][sS])
. if !empty(_LANGUAGES.distcc)
-. if !empty(PHASES_AFTER_BUILDLINK:M${PKG_PHASE}) && \
- empty(PREPEND_PATH:M${_DISTCC_DIR}/bin)
+. if empty(PREPEND_PATH:M${_DISTCC_DIR}/bin)
PREPEND_PATH+= ${_DISTCC_DIR}/bin
PATH:= ${_DISTCC_DIR}/bin:${PATH}
. endif