On Fri, Feb 5, 2021 at 10:44 PM Nick Desaulniers <ndesaulniers@xxxxxxxxxx> wrote: > > On Fri, Feb 5, 2021 at 1:37 PM Nathan Chancellor <nathan@xxxxxxxxxx> wrote: > > > > It is entirely possible that '--prefix=' should always be present though: > > > > diff --git a/Makefile b/Makefile > > index f5842126e89d..409822f45bfd 100644 > > --- a/Makefile > > +++ b/Makefile > > @@ -562,10 +562,10 @@ endif > > ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),) > > ifneq ($(CROSS_COMPILE),) > > CLANG_FLAGS += --target=$(notdir $(CROSS_COMPILE:%-=%)) > > +endif > > GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)elfedit)) > > CLANG_FLAGS += --prefix=$(GCC_TOOLCHAIN_DIR)$(notdir $(CROSS_COMPILE)) > > GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR)/..) > > -endif > > ifneq ($(GCC_TOOLCHAIN),) > > CLANG_FLAGS += --gcc-toolchain=$(GCC_TOOLCHAIN) > > endif > > I'm unsure. Consider the case where I'm building with `LLVM=1 > LLVM_IAS=1 CROSS_COMPILE=aarch64-linux-gnu`, ie. no GNU binutils and > am cross compiling. In that case, we should not be setting any > --prefix or --gcc-toolchain, and yet today we are. Perhaps that is > orthogonal though? > Nathan and Nick, Guys - you are really great. Big thank-you for your feedback. But I am out - the whole today I build Linux-kernels... "My head is empty." (Kofi Anan) Today, I remembered it is exactly one year we met in Zurich @ 1st ClangBuiltLinux meeting :-). - Sedat - P.S.: I asked Matthias Klose why binutils v2.35.2 is delayed - it's ready on <salsa.debian.org> Git.