@@ -55,9 +55,9 @@ set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN)
# Looks in the PATH if the argument contains no slash, else only considers one
# specific directory. Returns an # empty string if the program doesn't exist
# there.
-find-in-path = $(if $(find-string /, $1), \
+find-in-path = $(strip $(if $(find-string /, $1), \
$(wildcard $1), \
- $(wildcard $(patsubst %, %/$1, $(subst :, ,$(PATH)))))
+ $(wildcard $(patsubst %, %/$(strip $1), $(subst :, ,$(PATH))))))
# Generate files with tracetool
TRACETOOL=$(PYTHON) $(SRC_PATH)/scripts/tracetool.py
Whitespace needs to be stripped before building the path and in the end to ensure we really get an empty string. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> --- rules.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)