diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-06-25 10:41:01 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-06-25 10:41:01 +0000 |
commit | 1399282b47bb218132a554cbe5b2b0ce4dcc055f (patch) | |
tree | 79cde5f43bcc02cb6247c8fbc360603b979c9bfe | |
parent | 88308fec804a0e1df644c3ef99d339a2e653c0f3 (diff) | |
download | busybox-w32-1399282b47bb218132a554cbe5b2b0ce4dcc055f.tar.gz busybox-w32-1399282b47bb218132a554cbe5b2b0ce4dcc055f.tar.bz2 busybox-w32-1399282b47bb218132a554cbe5b2b0ce4dcc055f.zip |
- 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.
-rw-r--r-- | scripts/Kbuild.include | 2 |
1 files changed, 1 insertions, 1 deletions
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,,\ | |||
79 | 79 | ||
80 | # cc-version | 80 | # cc-version |
81 | # Usage gcc-ver := $(call cc-version, $(CC)) | 81 | # Usage gcc-ver := $(call cc-version, $(CC)) |
82 | cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \ | 82 | cc-version = $(shell PATH="$(PATH)" $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \ |
83 | $(if $(1), $(1), $(CC))) | 83 | $(if $(1), $(1), $(CC))) |
84 | 84 | ||
85 | # cc-ifversion | 85 | # cc-ifversion |