mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2026-01-27 12:47:24 +01:00
tools: Remove some options from CLANG_CROSS_FLAGS
These options are not needed with OE/Yocto since compiler is already passing these options via TOOLCHAIN_OPTIONS, having these options infact regressed OE builds because build time --sysroot on OE cross compiler is /not/exist and that creates problems where clang can no more find system headers anymore during compilation Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
5b92f7def8
commit
3326dff489
|
|
@ -101,9 +101,9 @@ ifeq ($(CLANG_CROSS_FLAGS),)
|
|||
CLANG_CROSS_FLAGS := --target=$(notdir $(CROSS_COMPILE:%-=%))
|
||||
GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)gcc 2>/dev/null))
|
||||
ifneq ($(GCC_TOOLCHAIN_DIR),)
|
||||
CLANG_CROSS_FLAGS += --prefix=$(GCC_TOOLCHAIN_DIR)$(notdir $(CROSS_COMPILE))
|
||||
CLANG_CROSS_FLAGS += --sysroot=$(shell $(CROSS_COMPILE)gcc -print-sysroot)
|
||||
CLANG_CROSS_FLAGS += --gcc-toolchain=$(realpath $(GCC_TOOLCHAIN_DIR)/..)
|
||||
#CLANG_CROSS_FLAGS += --prefix=$(GCC_TOOLCHAIN_DIR)$(notdir $(CROSS_COMPILE))
|
||||
#CLANG_CROSS_FLAGS += --sysroot=$(shell $(CROSS_COMPILE)gcc -print-sysroot)
|
||||
#CLANG_CROSS_FLAGS += --gcc-toolchain=$(realpath $(GCC_TOOLCHAIN_DIR)/..)
|
||||
endif # GCC_TOOLCHAIN_DIR
|
||||
endif # CLANG_CROSS_FLAGS
|
||||
CFLAGS += $(CLANG_CROSS_FLAGS)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user