From: Jonathan Wakely Date: Fri, 6 Jan 2017 17:06:24 +0000 (+0000) Subject: Check for __cxa_thread_atexit for freebsd crosses X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea4ad78e2c35e19b9a3387ecb4f021419e37ea9d;p=gcc.git Check for __cxa_thread_atexit for freebsd crosses PR libstdc++/78968 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*. * configure: Regenerate. From-SVN: r244169 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index eee7808ab1d..bbfa9d894eb 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2017-01-06 Jonathan Wakely + + PR libstdc++/78968 + * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*. + * configure: Regenerate. + 2017-01-06 Barrett Adair Jonathan Wakely diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index f6522725517..c7f679a2f2a 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -53265,6 +53265,17 @@ $as_echo "$ac_ld_relro" >&6; } $as_echo "#define HAVE_ISNANL 1" >>confdefs.h fi + for ac_func in __cxa_thread_atexit +do : + ac_fn_c_check_func "$LINENO" "__cxa_thread_atexit" "ac_cv_func___cxa_thread_atexit" +if test "x$ac_cv_func___cxa_thread_atexit" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE___CXA_THREAD_ATEXIT 1 +_ACEOF + +fi +done + ;; *-hpux*) SECTION_FLAGS='-ffunction-sections -fdata-sections' diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4 index 8cc788cf392..a765a184caa 100644 --- a/libstdc++-v3/crossconfig.m4 +++ b/libstdc++-v3/crossconfig.m4 @@ -132,6 +132,7 @@ case "${host}" in AC_DEFINE(HAVE_ISINFL) AC_DEFINE(HAVE_ISNANL) fi + AC_CHECK_FUNCS(__cxa_thread_atexit) ;; *-hpux*) SECTION_FLAGS='-ffunction-sections -fdata-sections'