libcxx: adds tls&libcxxabi dependency

If libcxxabi is not enabled, the toolchain default implementation will be used. However, arm-gcc does not enable thread
support by default, which will cause errors in a multi-threaded environment.

libcxx depends on pthread_key_create

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2024-07-16 17:08:28 +08:00 committed by Xiang Xiao
parent 6d39b248a4
commit a055734912

View File

@ -45,6 +45,7 @@ config LIBCXX
select HAVE_CXXINITIALIZE
select LIBC_LOCALE
select PTHREAD_MUTEX_TYPES
depends on TLS_NELEM > 0
---help---
LLVM "libc++" C++ Standard Library
https://libcxx.llvm.org/
@ -70,6 +71,7 @@ if LIBCXX || UCLIBCXX
choice
prompt "C++ low level library select"
default LIBCXXABI if LIBCXX
default LIBSUPCXX
config LIBCXXABI