summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-01-27 11:21:46 +0000
committertv <tv@pkgsrc.org>2005-01-27 11:21:46 +0000
commit1d26911a04c229378e305df18f34f75832b3079e (patch)
tree4a23e238002aa10c75be0fbe05bbf239cd35f1b8 /mk
parente00244279007be358c8c7cbf296fc324cfb895c4 (diff)
downloadpkgsrc-1d26911a04c229378e305df18f34f75832b3079e.tar.gz
Fix handling of PREPEND_PATH in dependency-recursed builds.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index f4de71bb474..15d70c361bd 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1575 2005/01/27 04:05:08 tv Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1576 2005/01/27 11:21:46 tv Exp $
#
# This file is in the public domain.
#
@@ -1173,7 +1173,9 @@ MAKEFLAGS+= ${def:C/=.*//}=${_${def:C/=.*$//}_CMD:sh}
.if !defined(_PATH_ORIG)
_PATH_ORIG:= ${PATH}
MAKEFLAGS+= _PATH_ORIG=${_PATH_ORIG:Q}
+.endif
+.if !empty(PREPEND_PATH)
# This is very Special. Because PREPEND_PATH is set with += in reverse order,
# the awk expression reverses the order again (since bootstrap bmake doesn't
# yet support the :[-1..1] construct).