Fixes PR21738.
The implementation for this is handled by __cxa_thread_atexit_impl,
which is supplied by libc.
More information:
https://sourceware.org/glibc/wiki/Destructor%20support%20for%20thread_local%20variables
Differential D6708
[libcxxabi] Add __cxa_thread_atexit for TLS support on Linux. danalbert on Dec 17 2014, 10:37 AM. Authored by
Details Fixes PR21738. The implementation for this is handled by __cxa_thread_atexit_impl, More information:
Diff Detail Event Timeline
Comment Actions Only build the implementation for cxa_thread_atexit if libc has
|
The only libc which provides __cxa_thread_atexit_impl is glibc. Other libc implementations on linux do not and it doesn't seem available on the BSDs.
I think it makes sense to forward to __cxa_thread_atexit_impl if the symbol exists, otherwise we need to have a definition of __cxa_thread_atexit which can do the real heavy lifting.