From beb587a2711885e5630e695cf89767d5de5df4d1 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 11 Jan 2021 23:27:45 -0800 Subject: newlib-nano: Build libstdc++ against newlib-nano if requested This uses the gcc support for building libstdc++ using alternate lib header files. Signed-off-by: Keith Packard --- config/comp_libs/newlib-nano.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'config/comp_libs') diff --git a/config/comp_libs/newlib-nano.in b/config/comp_libs/newlib-nano.in index ee05b924..0138a7fb 100644 --- a/config/comp_libs/newlib-nano.in +++ b/config/comp_libs/newlib-nano.in @@ -9,6 +9,15 @@ ## help array of processors, and will usually work on any architecture with ## help the addition of a few low-level routines. +config NEWLIB_NANO_GCC_LIBSTDCXX + bool + prompt "Compile libstdc++ newlib-nano variant" + default y + depends on CC_LANG_CXX + help + This option compiles an additional target libstdc++ for use with + newlib-nano. + # maybe older versions of newlib will support it too, but this # needs to be checked config NEWLIB_NANO_CXA_ATEXIT -- cgit v1.2.3