Makefile: Pay attention to binary prefixes in the toolchains when setting GCC_TOOLCHAIN_DIR
This commit is contained in:
parent
16f4f8ed11
commit
86b232ea4b
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -512,7 +512,7 @@ CLANG_FLAGS := --target=$(notdir $(CLANG_TRIPLE:%-=%))
|
|||
ifeq ($(shell $(srctree)/scripts/clang-android.sh $(CC) $(CLANG_FLAGS)), y)
|
||||
$(error "Clang with Android --target detected. Did you specify CLANG_TRIPLE?")
|
||||
endif
|
||||
GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)elfedit))
|
||||
GCC_TOOLCHAIN_DIR := $(subst elfedit,,$(shell which $(CROSS_COMPILE)elfedit))
|
||||
CLANG_FLAGS += --prefix=$(GCC_TOOLCHAIN_DIR)
|
||||
GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR)/..)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue