summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2021-01-12 07:27:45 (GMT)
committerKeith Packard <keithp@keithp.com>2021-01-14 23:05:10 (GMT)
commitbeb587a2711885e5630e695cf89767d5de5df4d1 (patch)
tree152cc80bacb6a3fa67d3d6023b99881b40da9213 /config
parent15e053fdc44e8c4a8fe1f87ea2e6787b8420dcd1 (diff)
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 <keithp@keithp.com>
Diffstat (limited to 'config')
-rw-r--r--config/comp_libs/newlib-nano.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/comp_libs/newlib-nano.in b/config/comp_libs/newlib-nano.in
index ee05b92..0138a7f 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