From bbf60ec685b6b76c4cf7a33e4c2036eeffbf285d Mon Sep 17 00:00:00 2001 From: cuiziwei Date: Fri, 26 Jan 2024 10:30:13 +0800 Subject: [PATCH] gnu++20:fix ld error. LD: nuttx arm-none-eabi-ld: warning: net_sendfile.o: missing .note.GNU-stack section implies executable stack arm-none-eabi-ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker arm-none-eabi-ld: warning: nuttx/nuttx has a LOAD segment with RWX permissions arm-none-eabi-ld: apps/staging/libfeature.a(feature_framework.cpp.frameworks.base.feature_1.o): in function `std::__1::__throw_length_error[abi:un170006](char const*)': Signed-off-by: cuiziwei --- libs/libxx/__config_site | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/libxx/__config_site b/libs/libxx/__config_site index 8843326f8a8d3..a151662f449f0 100644 --- a/libs/libxx/__config_site +++ b/libs/libxx/__config_site @@ -38,6 +38,9 @@ #define _LIBCPP_ENABLE_HARDENED_MODE_DEFAULT 0 #define _LIBCPP_ENABLE_DEBUG_MODE_DEFAULT 0 +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS 1 +#define _LIBCPP_AVAILABILITY_HAS_NO_VERBOSE_ABORT 1 + // __USE_MINGW_ANSI_STDIO gets redefined on MinGW #ifdef __clang__ # pragma clang diagnostic push