summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorStephanos Ioannidis <root@stephanos.io>2021-06-07 06:13:19 (GMT)
committerStephanos Ioannidis <root@stephanos.io>2021-06-07 10:53:28 (GMT)
commit7144b5f275f380941bffca9509ecb97542c8e5ea (patch)
tree8f49caca6134eab0082abf40600b34c068b61dd9 /config
parentfffa4c5aa5b5995ce88680170fb2288b10b05fbe (diff)
newlib: Add libstdc++ nano-specific CXXFLAGS
This commit adds a new config that can be used to specify the target CXXFLAGS specific to the libstdc++ newlib-nano variant. By default, this config is set to specify the `-fno-exceptions` option, which disables C++ exception handling support and greatly reduces the compiled binary size. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
Diffstat (limited to 'config')
-rw-r--r--config/comp_libs/newlib-nano.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/comp_libs/newlib-nano.in b/config/comp_libs/newlib-nano.in
index 0d80c89..5a81fde 100644
--- a/config/comp_libs/newlib-nano.in
+++ b/config/comp_libs/newlib-nano.in
@@ -18,6 +18,14 @@ config NEWLIB_NANO_GCC_LIBSTDCXX
This option compiles an additional target libstdc++ for use with
newlib-nano.
+config NEWLIB_NANO_GCC_LIBSTDCXX_TARGET_CXXFLAGS
+ string
+ prompt "Target CXXFLAGS for libstdc++ newlib-nano variant"
+ default "-fno-exceptions"
+ help
+ Used to add extra CXXFLAGS when compiling the target libstdc++
+ newlib-nano library (e.g. -fno-exceptions).
+
config NEWLIB_NANO_INSTALL_IN_TARGET
bool
prompt "Additionally install newlib-nano libs into TARGET dir"