From d295a5341d0cae95c199e0aabcbcde82c6fff0d1 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 5 Sep 2023 11:14:02 +0100 Subject: [PATCH] libstdc++: Disable support by default for avr libstdc++-v3/ChangeLog: * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Disable by default for avr. * configure: Regenerate. --- libstdc++-v3/acinclude.m4 | 5 ++++- libstdc++-v3/configure | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index b7210e09d89..15b3d74ffb7 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -5481,7 +5481,10 @@ BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DBACKTRACE_ELF_SIZE=$elfsize" AC_MSG_CHECKING([whether to build libbacktrace support]) if test "$enable_libstdcxx_backtrace" = "auto"; then - enable_libstdcxx_backtrace="$is_hosted" + case "$host" in + avr-*-*) enable_libstdcxx_backtrace=no ;; + *) enable_libstdcxx_backtrace="$is_hosted" ;; + esac fi AC_MSG_RESULT($enable_libstdcxx_backtrace) if test "$enable_libstdcxx_backtrace" = "yes"; then diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index dcb9fd6158c..22cb5b02d74 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -73156,7 +73156,10 @@ BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DBACKTRACE_ELF_SIZE=$elfsize" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build libbacktrace support" >&5 $as_echo_n "checking whether to build libbacktrace support... " >&6; } if test "$enable_libstdcxx_backtrace" = "auto"; then - enable_libstdcxx_backtrace="$is_hosted" + case "$host" in + avr-*-*) enable_libstdcxx_backtrace=no ;; + *) enable_libstdcxx_backtrace="$is_hosted" ;; + esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_backtrace" >&5 $as_echo "$enable_libstdcxx_backtrace" >&6; }