From fd04f436170a208ae30fe42ab2f56b543b0b81c5 Mon Sep 17 00:00:00 2001 From: Quentin Boswank Date: Sat, 12 Aug 2023 20:11:58 +0200 Subject: Add option to re-enable ˋlibstdc++ˋ on avr targets. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Due to the small flash space on AVR devices the library containing the standard types in C++ (ˋlibstdc++ˋ) does not get built normally when enabling the C++ language support. This option is an easy way to go back to the PC-way where ˋlibstdc++ˋ is built. Signed-off-by: Quentin Boswank --- config/cc/gcc.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'config') diff --git a/config/cc/gcc.in b/config/cc/gcc.in index 1f50460a..d064ffb4 100644 --- a/config/cc/gcc.in +++ b/config/cc/gcc.in @@ -54,6 +54,15 @@ config CC_GCC_ENABLE_CXX_FLAGS Note: just pass in the option _value_, that is only the part that goes after the '=' sign. +config CC_GCC_EXTRA_LIBSTDCXX + bool "Re-enable libstdcxx" + default n + depends on LIBC_AVR_LIBC + select CC_CORE_PASS_2_NEEDED + help + libstdcxx is normally disabled on avr systems due to size limitations. + Set this option to re-enable libstdcxx support. + config CC_GCC_CORE_EXTRA_CONFIG_ARRAY string "Core gcc extra config" default "" -- cgit v1.2.3