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 | 963184968fcb4f14d1136f549b5c12a385560dff (patch) | |
tree | 36bb765c692e0af82fc39ade039cb5d2322ef647 /mk/compiler.mk | |
parent | 62088fdbfb94e684381df8dd23e49bdf0bf8c9d0 (diff) | |
download | pkgsrc-963184968fcb4f14d1136f549b5c12a385560dff.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) |