summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-05-04 04:46:48 +0000
committerjlam <jlam@pkgsrc.org>2005-05-04 04:46:48 +0000
commit110ac816eef7571ad11fa637e8728052ebda52fc (patch)
treef37b97e3c740f7079a2272a4dbf60638db884785 /mk
parentb8d377ce5f81ea9d9ae8ead26e69f85c3ac0ef09 (diff)
downloadpkgsrc-110ac816eef7571ad11fa637e8728052ebda52fc.tar.gz
Create a wrapper instead of a symlink if TOOLS_REAL_CMD.<tool> isn't an
absolute path.
Diffstat (limited to 'mk')
-rw-r--r--mk/tools/replace.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index c873e83e641..02dd628f64d 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.61 2005/05/03 20:41:53 jlam Exp $
+# $NetBSD: replace.mk,v 1.62 2005/05/04 04:46:48 jlam Exp $
#
# This Makefile fragment handles "replacements" of system-supplied
# tools with pkgsrc versions. The replacements are placed under
@@ -848,7 +848,7 @@ TOOLS_ARGS.${_t_}?= \
. if defined(_TOOLS_VARNAME.${_t_})
${_TOOLS_VARNAME.${_t_}}= ${TOOLS_PLATFORM.${_t_}}
. endif
-. if !empty(TOOLS_ARGS.${_t_})
+. if empty(TOOLS_REAL_CMD.${_t_}:M/*) || !empty(TOOLS_ARGS.${_t_})
TOOLS_WRAP+= ${_t_}
. else
TOOLS_SYMLINK+= ${_t_}