From 6780e48aca3313c2973e8a138072cc07774a442b Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Wed, 6 Sep 2023 17:12:42 +1200 Subject: [PATCH] xtensa-fsf-elf: Unset NEWLIB_GLOBAL_ATEXIT NEWLIB_GLOBAL_ATEXIT needs to be set to y for modern newlib versions. Commit 227d99d7 ("newlib: add 4.3.0.20230120") ensured this was done. But xtensa-fsf-elf uses a newlib version from before this so it needs to explicitly opt out. Signed-off-by: Chris Packham --- samples/xtensa-fsf-elf/crosstool.config | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/xtensa-fsf-elf/crosstool.config b/samples/xtensa-fsf-elf/crosstool.config index a13c4779..b88c039f 100644 --- a/samples/xtensa-fsf-elf/crosstool.config +++ b/samples/xtensa-fsf-elf/crosstool.config @@ -16,6 +16,7 @@ CT_NEWLIB_DEVEL_URL="https://github.com/espressif/newlib-esp32.git" CT_NEWLIB_DEVEL_REVISION="fdbb7b81" CT_LIBC_NEWLIB_TARGET_CFLAGS="-DSIGNAL_PROVIDED -DABORT_PROVIDED -DMALLOC_PROVIDED" CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y +# CT_LIBC_NEWLIB_GLOBAL_ATEXIT is not set CT_GCC_SRC_DEVEL=y CT_GCC_DEVEL_VCS_git=y CT_GCC_DEVEL_URL="https://github.com/espressif/gcc.git"