Check for __cxa_thread_atexit for freebsd crosses
authorJonathan Wakely <jwakely@redhat.com>
Fri, 6 Jan 2017 17:06:24 +0000 (17:06 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 6 Jan 2017 17:06:24 +0000 (17:06 +0000)
PR libstdc++/78968
* crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
* configure: Regenerate.

From-SVN: r244169

libstdc++-v3/ChangeLog
libstdc++-v3/configure
libstdc++-v3/crossconfig.m4

index eee7808..bbfa9d8 100644 (file)
@@ -1,3 +1,9 @@
+2017-01-06  Jonathan Wakely  <jwakely@redhat.com>
+
+       PR libstdc++/78968
+       * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
+       * configure: Regenerate.
+
 2017-01-06  Barrett Adair  <barrettellisadair@gmail.com>
            Jonathan Wakely  <jwakely@redhat.com>
 
index f652272..c7f679a 100755 (executable)
@@ -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'
index 8cc788c..a765a18 100644 (file)
@@ -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'