From 70c3ff2ed0885d50811eacdfdf663910ade20a6e Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 30 Nov 2004 15:07:26 +0000 Subject: 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 ". --- mk/compiler.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mk/compiler.mk') 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) -- cgit v1.2.3