- 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.
No binary (build failed)
—
(log yok)
| @@ -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 | |