summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2007-06-25 10:41:01 +0000
committerBernhard Reutner-Fischer2007-06-25 10:41:01 +0000
commit1399282b47bb218132a554cbe5b2b0ce4dcc055f (patch)
tree79cde5f43bcc02cb6247c8fbc360603b979c9bfe /scripts
parent88308fec804a0e1df644c3ef99d339a2e653c0f3 (diff)
downloadbusybox-1399282b47bb218132a554cbe5b2b0ce4dcc055f.zip
busybox-1399282b47bb218132a554cbe5b2b0ce4dcc055f.tar.gz
- 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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Kbuild.include2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index c6599c8..6ec1809 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