- need to pass the PATH down to the gcc-version check to be able to find the correct cc.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 25 Jun 2007 10:41:01 +0000 (10:41 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 25 Jun 2007 10:41:01 +0000 (10:41 -0000)
  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

index c6599c8f53e9e5353885668efac69ed113c58de1..6ec1809a2b373ce54cf00e09bcd96fa616948ff6 100644 (file)
@@ -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