diff --git a/arch/arm/src/arm/Toolchain.defs b/arch/arm/src/arm/Toolchain.defs index b2a5332290..8601ae1ce9 100644 --- a/arch/arm/src/arm/Toolchain.defs +++ b/arch/arm/src/arm/Toolchain.defs @@ -105,7 +105,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L ${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"} endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += lsupc++ EXTRA_LIBPATHS += -L ${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"} endif diff --git a/arch/arm/src/armv6-m/Toolchain.defs b/arch/arm/src/armv6-m/Toolchain.defs index 10a169a32c..204867e3c0 100644 --- a/arch/arm/src/armv6-m/Toolchain.defs +++ b/arch/arm/src/armv6-m/Toolchain.defs @@ -97,7 +97,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/arch/arm/src/armv7-a/Toolchain.defs b/arch/arm/src/armv7-a/Toolchain.defs index c9446517ab..792a8bdd74 100644 --- a/arch/arm/src/armv7-a/Toolchain.defs +++ b/arch/arm/src/armv7-a/Toolchain.defs @@ -123,7 +123,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/arch/arm/src/armv7-m/Toolchain.defs b/arch/arm/src/armv7-m/Toolchain.defs index 68ff2b05c4..56f819620d 100644 --- a/arch/arm/src/armv7-m/Toolchain.defs +++ b/arch/arm/src/armv7-m/Toolchain.defs @@ -159,7 +159,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/arch/arm/src/armv7-r/Toolchain.defs b/arch/arm/src/armv7-r/Toolchain.defs index c9ea799542..1f5f61ad64 100644 --- a/arch/arm/src/armv7-r/Toolchain.defs +++ b/arch/arm/src/armv7-r/Toolchain.defs @@ -105,7 +105,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/arch/arm/src/armv8-m/Toolchain.defs b/arch/arm/src/armv8-m/Toolchain.defs index dbb3420b88..f2b152a758 100644 --- a/arch/arm/src/armv8-m/Toolchain.defs +++ b/arch/arm/src/armv8-m/Toolchain.defs @@ -147,7 +147,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/arch/avr/src/avr/Toolchain.defs b/arch/avr/src/avr/Toolchain.defs index f8c60d39dd..3715f9dda3 100644 --- a/arch/avr/src/avr/Toolchain.defs +++ b/arch/avr/src/avr/Toolchain.defs @@ -138,7 +138,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/arch/avr/src/avr32/Toolchain.defs b/arch/avr/src/avr32/Toolchain.defs index 9b3206e037..418f9e610f 100644 --- a/arch/avr/src/avr32/Toolchain.defs +++ b/arch/avr/src/avr32/Toolchain.defs @@ -58,7 +58,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/arch/hc/src/Makefile b/arch/hc/src/Makefile index 3b19b67be5..858a27a383 100644 --- a/arch/hc/src/Makefile +++ b/arch/hc/src/Makefile @@ -95,7 +95,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${dir ${shell $(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a}}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${dir ${shell $(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a}}" endif diff --git a/arch/mips/src/mips32/Toolchain.defs b/arch/mips/src/mips32/Toolchain.defs index d8783c2038..c148e572f0 100644 --- a/arch/mips/src/mips32/Toolchain.defs +++ b/arch/mips/src/mips32/Toolchain.defs @@ -281,7 +281,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L ${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"} endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += lsupc++ EXTRA_LIBPATHS += -L ${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"} endif diff --git a/arch/misoc/src/lm32/Toolchain.defs b/arch/misoc/src/lm32/Toolchain.defs index e5ec0a46d8..24edf59fea 100644 --- a/arch/misoc/src/lm32/Toolchain.defs +++ b/arch/misoc/src/lm32/Toolchain.defs @@ -95,7 +95,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/arch/misoc/src/minerva/Toolchain.defs b/arch/misoc/src/minerva/Toolchain.defs index 5f01a9b96d..e1427d981a 100644 --- a/arch/misoc/src/minerva/Toolchain.defs +++ b/arch/misoc/src/minerva/Toolchain.defs @@ -49,7 +49,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/arch/or1k/src/mor1kx/Toolchain.defs b/arch/or1k/src/mor1kx/Toolchain.defs index 7fe32479a5..a514abe72c 100644 --- a/arch/or1k/src/mor1kx/Toolchain.defs +++ b/arch/or1k/src/mor1kx/Toolchain.defs @@ -76,7 +76,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/arch/renesas/src/Makefile b/arch/renesas/src/Makefile index 55b79844d8..85f48bec5e 100644 --- a/arch/renesas/src/Makefile +++ b/arch/renesas/src/Makefile @@ -88,7 +88,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L"${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L"${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/arch/risc-v/src/rv32im/Toolchain.defs b/arch/risc-v/src/rv32im/Toolchain.defs index 4f88e099b1..9283a55f48 100644 --- a/arch/risc-v/src/rv32im/Toolchain.defs +++ b/arch/risc-v/src/rv32im/Toolchain.defs @@ -91,7 +91,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/arch/risc-v/src/rv64gc/Toolchain.defs b/arch/risc-v/src/rv64gc/Toolchain.defs index 479ec25352..07e659a103 100644 --- a/arch/risc-v/src/rv64gc/Toolchain.defs +++ b/arch/risc-v/src/rv64gc/Toolchain.defs @@ -81,7 +81,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/arch/x86/src/Makefile b/arch/x86/src/Makefile index 70f93bfa43..f8b6c68d98 100644 --- a/arch/x86/src/Makefile +++ b/arch/x86/src/Makefile @@ -92,7 +92,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${dir ${shell $(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a}}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${dir ${shell $(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a}}" endif diff --git a/arch/x86_64/src/Makefile b/arch/x86_64/src/Makefile index eba49ea706..fa3bc20dc9 100644 --- a/arch/x86_64/src/Makefile +++ b/arch/x86_64/src/Makefile @@ -94,7 +94,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${dir ${shell $(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a}}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${dir ${shell $(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a}}" endif diff --git a/arch/xtensa/src/lx6/Toolchain.defs b/arch/xtensa/src/lx6/Toolchain.defs index 1830533461..0a99d7f749 100644 --- a/arch/xtensa/src/lx6/Toolchain.defs +++ b/arch/xtensa/src/lx6/Toolchain.defs @@ -81,7 +81,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/arch/xtensa/src/lx7/Toolchain.defs b/arch/xtensa/src/lx7/Toolchain.defs index ab92d43085..1c39d64128 100644 --- a/arch/xtensa/src/lx7/Toolchain.defs +++ b/arch/xtensa/src/lx7/Toolchain.defs @@ -82,7 +82,7 @@ ifneq ($(CONFIG_LIBM),y) EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libm.a`"}" endif -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) EXTRA_LIBS += -lsupc++ EXTRA_LIBPATHS += -L "${shell dirname "`$(CC) $(ARCHCPUFLAGS) --print-file-name=libsupc++.a`"}" endif diff --git a/boards/arm/stm32/stm32f4discovery/README.txt b/boards/arm/stm32/stm32f4discovery/README.txt index ddb99c2035..5a78ccdc3e 100644 --- a/boards/arm/stm32/stm32f4discovery/README.txt +++ b/boards/arm/stm32/stm32f4discovery/README.txt @@ -1394,7 +1394,7 @@ Configuration Sub-directories CONFIG_UCLIBCXX=y CONFIG_CXX_EXCEPTION=y - CONFIG_CXX_LIBSUPCXX=y + CONFIG_LIBSUPCXX=y CONFIG_UCLIBCXX_BUFSIZE=32 CONFIG_EXAMPLES_ELF_CXX=y diff --git a/libs/libxx/Kconfig b/libs/libxx/Kconfig index a20d1ee1eb..b220e45c0e 100644 --- a/libs/libxx/Kconfig +++ b/libs/libxx/Kconfig @@ -54,7 +54,7 @@ if LIBCXX || UCLIBCXX choice prompt "C++ low level library select" - default CXX_LIBSUPCXX + default LIBSUPCXX config LIBCXXABI bool "LLVM low level C++ Library" @@ -63,7 +63,7 @@ config LIBCXXABI https://libcxxabi.llvm.org/ Select if your use libc++abi as lower level c++ library -config CXX_LIBSUPCXX +config LIBSUPCXX bool "GNU low level libsupc++" ---help--- Select if your toolchain provides libsupc++ and use libsupc++ as lower diff --git a/libs/libxx/Makefile b/libs/libxx/Makefile index d3fba0c3b1..3cd32df56e 100644 --- a/libs/libxx/Makefile +++ b/libs/libxx/Makefile @@ -21,7 +21,7 @@ include $(TOPDIR)/Make.defs CXXSRCS = libxx_cxa_atexit.cxx -ifeq ($(CONFIG_CXX_LIBSUPCXX),y) +ifeq ($(CONFIG_LIBSUPCXX),y) CXXSRCS += libxx_impure.cxx else CXXSRCS += libxx_eabi_atexit.cxx