diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2025-06-11 23:24:31 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-06-11 16:21:36 -0600 |
commit | 3991f85e4cdcd721c91d376468e5396504e2199d (patch) | |
tree | 0cdf9b53300d5fe145cb474fd599cc1b1656d6da | |
parent | a76fb6981fb502717c7a5b7a601ef5c4c4dc17a0 (diff) |
kbuild: clang: choose GCC_TOOLCHAIN_DIR not on LD
Backported from kernel
commit ad15006cc784 ("kbuild: clang: choose GCC_TOOLCHAIN_DIR not on LD")
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -446,7 +446,7 @@ ifeq ($(cc-name),clang) ifneq ($(CROSS_COMPILE),) CLANG_TARGET := --target=$(notdir $(CROSS_COMPILE:%-=%)) LDPPFLAGS += $(CLANG_TARGET) -GCC_TOOLCHAIN_DIR := $(dir $(shell which $(LD))) +GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)elfedit)) CLANG_PREFIX := --prefix=$(GCC_TOOLCHAIN_DIR) GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR)/..) endif |