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:
parent
ae19554c66
commit
f86644141b
2 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -138,6 +138,8 @@ AFLAGS += -Wa,--divide
|
|||
endif
|
||||
|
||||
EXEEXT = .elf
|
||||
|
||||
LDFLAGS += -nostdlib -static
|
||||
|
||||
# Loadable module definitions
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue