diff options
author | jlam <jlam> | 2004-02-06 04:37:02 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-02-06 04:37:02 +0000 |
commit | 59eb21ba1124fceff86c7afb4257da4ccc2937c2 (patch) | |
tree | f6ef70f7dd739d99171898ff7944f83d524e3f1e /mk/compiler/distcc.mk | |
parent | 025f76788eaf5394742f50cd9b0f22cbe2d56d5f (diff) | |
download | pkgsrc-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.mk | 5 |
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 |