diff options
author | jlam <jlam@pkgsrc.org> | 2004-11-30 15:07:26 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-11-30 15:07:26 +0000 |
commit | 28e0cb9288a55c949945c476185b84e7125f0718 (patch) | |
tree | 36bb765c692e0af82fc39ade039cb5d2322ef647 /mk/compiler.mk | |
parent | 062a84b22fcfeb7099c62c1f4db2acc33b3950b2 (diff) | |
download | pkgsrc-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/compiler.mk')
-rw-r--r-- | mk/compiler.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk index 8d52e1a9a52..a979de1e28e 100644 --- a/mk/compiler.mk +++ b/mk/compiler.mk @@ -1,4 +1,4 @@ -# $NetBSD: compiler.mk,v 1.40 2004/11/30 14:50:37 jlam Exp $ +# $NetBSD: compiler.mk,v 1.41 2004/11/30 15:07:26 jlam Exp $ # # This Makefile fragment implements handling for supported C/C++/Fortran # compilers. @@ -128,7 +128,11 @@ _COMPILER_STRIP_VARS= # empty # the PATH to use the correct executable. # .for _var_ in ${_COMPILER_STRIP_VARS} +. if empty(${_var_}:C/^/_asdf_/1:N_asdf_*) +${_var_}:= ${${_var_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//:T} +. else ${_var_}:= ${${_var_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//:T} ${${_var_}:C/^/_asdf_/1:N_asdf_*} +. endif .endfor .if defined(ABI) && !empty(ABI) |