From 1399282b47bb218132a554cbe5b2b0ce4dcc055f Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 25 Jun 2007 10:41:01 +0000 Subject: [PATCH] - need to pass the PATH down to the gcc-version check to be able to find the correct cc. Fixes make PATH="$CROSS_BIN:$PATH" CROSS_COMPILE=foo- like invocations that previously failed to resolve since the information about the path set by the user was lost. --- scripts/Kbuild.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index c6599c8f5..6ec1809a2 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -79,7 +79,7 @@ cc-option-align = $(subst -functions=0,,\ # cc-version # Usage gcc-ver := $(call cc-version, $(CC)) -cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \ +cc-version = $(shell PATH="$(PATH)" $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \ $(if $(1), $(1), $(CC))) # cc-ifversion -- 2.25.1