[PATCH] PR78968 add configure check for __cxa_thread_atexit in libc
Jonathan Wakely
jwakely@redhat.com
Fri Jan 6 17:06:00 GMT 2017
On 04/01/17 15:42 +0000, Jonathan Wakely wrote:
>FreeBSD 11 adds __cxa_thread_atexit to libc, so we should use that
>instead of defining our own inferior version. This also avoids
>multiple definitions of the symbol.
>
> PR libstdc++/78968
> * config.h.in: Regenerate.
> * configure: Likewise.
> * configure.ac: Check for __cxa_thread_atexit.
> * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
> Don't define __cxa_thread_atexit if libc provides it.
>
>Tested powerpc64le-linux, committed to trunk.
This adds the check for freebsd cross-compilers. Tested by building
x86_64-unknown-freebsd11.0 on x86_64-uknown-linux-gnu.
Committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 709 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20170106/2953e930/attachment.bin>
More information about the Libstdc++
mailing list