Makefile.toolchain.zephyr: fix C++ on Xtensa
Need to set CXXFLAGS just like we did CFLAGS. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
e125e5b9c6
commit
5b22d6fab3
1 changed files with 3 additions and 1 deletions
|
@ -101,7 +101,9 @@ SYSROOT_TARGET_xtensa = xtensa-$(TOOLCHAIN_VENDOR)-elf
|
|||
CROSS_COMPILE_xtensa=$(TOOLCHAIN_HOME)/usr/bin/$(CROSS_COMPILE_TARGET_xtensa)/$(CROSS_COMPILE_TARGET_xtensa)-
|
||||
ifeq ($(ARCH),xtensa)
|
||||
SYSROOT := ${ZEPHYR_SDK_INSTALL_DIR}/sysroots/${SYSROOT_TARGET_${ARCH}}
|
||||
CFLAGS += --sysroot=$(SYSROOT) -I=/usr/include -I=/usr/include/arch/include
|
||||
common_xtensa_flags := --sysroot=$(SYSROOT) -I=/usr/include -I=/usr/include/arch/include
|
||||
CFLAGS += $(common_xtensa_flags)
|
||||
CXXFLAGS += $(common_xtensa_flags)
|
||||
endif
|
||||
TOOLCHAIN_LIBS_xtensa = hal
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue