summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2021-01-12 06:28:38 (GMT)
committerKeith Packard <keithp@keithp.com>2021-01-12 07:29:01 (GMT)
commit27b18d2fc70a7788c97f57a02a768214a2548ee0 (patch)
tree369633156cecebec9fae686eec418e94fb148711 /config
parent43f50793826918f78b79d2e8197da4e58bdf6748 (diff)
picolibc: Build libstdc++ against picolibc 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/picolibc.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/comp_libs/picolibc.in b/config/comp_libs/picolibc.in
index 62ab22b..cb7a1e4 100644
--- a/config/comp_libs/picolibc.in
+++ b/config/comp_libs/picolibc.in
@@ -10,6 +10,16 @@
## help conglomeration of several library parts, all under BSD-compatible software
## help licenses that make them easily usable on embedded products.
+config LIBC_PICOLIBC_GCC_LIBSTDCXX
+ bool
+ prompt "Compile libstdc++ picolibc variant"
+ default y
+ depends on CC_LANG_CXX
+ help
+ This option compiles an additional target libstdc++ for use with
+ picolibc. This version is linked when "--specs=picolibcpp.specs"
+ is specified.
+
config LIBC_PICOLIBC_CXA_ATEXIT
def_bool y
select LIBC_PROVIDES_CXA_ATEXIT