From 8865d4d7db195037a5edcea794dd614de5327751 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 10 Aug 2022 15:25:57 -0700 Subject: [PATCH] picolibc: Don't select TLS without toolchain support If the architecture has TLS support, but the toolchain doesn't, then don't enable Zephyr TLS support when selecting picolibc. Closes: #47275. Signed-off-by: Keith Packard --- lib/libc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/Kconfig b/lib/libc/Kconfig index d4124e1364f..af47b948562 100644 --- a/lib/libc/Kconfig +++ b/lib/libc/Kconfig @@ -38,7 +38,7 @@ config MINIMAL_LIBC config PICOLIBC bool "Picolibc library" - select THREAD_LOCAL_STORAGE if ARCH_HAS_THREAD_LOCAL_STORAGE + select THREAD_LOCAL_STORAGE if ARCH_HAS_THREAD_LOCAL_STORAGE && TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE select LIBC_ERRNO if THREAD_LOCAL_STORAGE depends on !NATIVE_APPLICATION help