summaryrefslogtreecommitdiff
path: root/mk/wrapper
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-11-30 15:07:26 +0000
committerjlam <jlam@pkgsrc.org>2004-11-30 15:07:26 +0000
commit28e0cb9288a55c949945c476185b84e7125f0718 (patch)
tree36bb765c692e0af82fc39ade039cb5d2322ef647 /mk/wrapper
parent062a84b22fcfeb7099c62c1f4db2acc33b3950b2 (diff)
downloadpkgsrc-28e0cb9288a55c949945c476185b84e7125f0718.tar.gz
Remove the trailing whitespace in the values of the toolchain variables
(CC, LD, CXX, etc.) if the default values have no arguments. Now, CC == "cc" and not "cc ".
Diffstat (limited to 'mk/wrapper')
-rw-r--r--mk/wrapper/bsd.wrapper.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/wrapper/bsd.wrapper.mk b/mk/wrapper/bsd.wrapper.mk
index 8a9c9918039..fd41b787249 100644
--- a/mk/wrapper/bsd.wrapper.mk
+++ b/mk/wrapper/bsd.wrapper.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.wrapper.mk,v 1.13 2004/11/30 14:50:37 jlam Exp $
+# $NetBSD: bsd.wrapper.mk,v 1.14 2004/11/30 15:07:26 jlam Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -154,7 +154,11 @@ _WRAPPEES_UNIQUE+= ${_wrappee_}
# Strip the leading paths from the toolchain variables since we manipulate
# the PATH to use the correct executable.
#
+. if empty(${_wrappee_}:C/^/_asdf_/1:N_asdf_*)
+${_wrappee_}:= ${${_wrappee_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//:T}
+. else
${_wrappee_}:= ${${_wrappee_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//:T} ${${_wrappee_}:C/^/_asdf_/1:N_asdf_*}
+. endif
#
# WRAPPER_<wrappee> is the full path to the wrapper script, plus any
# trailing arguments to <wrappee>.