x86_64:Fix ld error.

LD: nuttx.elf
ld:in function `std::__1::ios_base::imbue(std::__1::locale const&)':
nuttx/libs/libxx/libcxx/src/ios.cpp:129: undefined reference to `_Unwind_Resume'

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
cuiziwei 2024-10-10 15:51:18 +08:00 committed by Xiang Xiao
parent ae19554c66
commit f86644141b
2 changed files with 6 additions and 0 deletions

View file

@ -97,6 +97,10 @@ ifeq ($(CONFIG_LIBSUPCXX),y)
EXTRA_LIBS += ${wildcard ${shell $(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a}}
endif
ifeq ($(CONFIG_CXX_EXCEPTION),y)
EXTRA_LIBS += ${wildcard ${shell $(CC) $(ARCHCPUFLAGS) --print-file-name=libgcc_eh.a}}
endif
VPATH = chip:common:$(ARCH_SUBDIR)
all: libarch$(LIBEXT)

View file

@ -138,6 +138,8 @@ AFLAGS += -Wa,--divide
endif
EXEEXT = .elf
LDFLAGS += -nostdlib -static
# Loadable module definitions