mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
libs: Move libxx_impure.cxx from libs/libxx/ to libs/libc/misc/
to fix the gcov link error: arm-none-eabi-ld: /home/xiaoxiang/vela/prebuilts/gcc/linux/arm/bin/../lib/gcc/arm-none-eabi/10.3.1/thumb/v7e-m/nofp/libgcov.a(_gcov.o): in function `gcov_error_exit': libgcov-driver.c:(.text+0x7c): undefined reference to `_impure_ptr' arm-none-eabi-ld: /home/xiaoxiang/vela/prebuilts/gcc/linux/arm/bin/../lib/gcc/arm-none-eabi/10.3.1/thumb/v7e-m/nofp/libgcov.a(_gcov.o): in function `get_gcov_error_file': libgcov-driver.c:(.text+0x1e0): undefined reference to `_impure_ptr' arm-none-eabi-ld: /home/xiaoxiang/vela/prebuilts/gcc/linux/arm/bin/../lib/gcc/arm-none-eabi/10.3.1/thumb/v7e-m/nofp/libgcov.a(_gcov.o): in function `gcov_exit_open_gcda_file.isra.0': libgcov-driver.c:(.text+0x660): undefined reference to `_impure_ptr' Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
e84e5f0e1d
commit
4ae7f4c1f6
+1
-3
@@ -41,9 +41,7 @@ ifeq ($(CONFIG_LIBCXXABI),y)
|
||||
include libcxxabi.defs
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_LIBSUPCXX),y)
|
||||
CXXSRCS += libxx_impure.cxx
|
||||
else
|
||||
ifneq ($(CONFIG_LIBSUPCXX),y)
|
||||
CXXSRCS += libxx_eabi_atexit.cxx
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user