mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user