From: Bernhard Reutner-Fischer Date: Mon, 25 Jun 2007 10:41:01 +0000 (-0000) Subject: - need to pass the PATH down to the gcc-version check to be able to find the correct cc. X-Git-Tag: 1_7_0~180 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1399282b47bb218132a554cbe5b2b0ce4dcc055f;p=oweals%2Fbusybox.git - 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. --- 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