diff options
author | jlam <jlam> | 2004-11-30 15:07:26 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-11-30 15:07:26 +0000 |
commit | 70c3ff2ed0885d50811eacdfdf663910ade20a6e (patch) | |
tree | 36bb765c692e0af82fc39ade039cb5d2322ef647 /mk/wrapper | |
parent | 976d7582849c4f809074c8b5dcb4ff135cdaccf3 (diff) | |
download | pkgsrc-70c3ff2ed0885d50811eacdfdf663910ade20a6e.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.mk | 6 |
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>. |