- 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.
This commit is contained in:
parent
88308fec80
commit
1399282b47
@ -79,7 +79,7 @@ cc-option-align = $(subst -functions=0,,\
|
|||||||
|
|
||||||
# cc-version
|
# cc-version
|
||||||
# Usage gcc-ver := $(call cc-version, $(CC))
|
# 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)))
|
$(if $(1), $(1), $(CC)))
|
||||||
|
|
||||||
# cc-ifversion
|
# cc-ifversion
|
||||||
|
Loading…
Reference in New Issue
Block a user