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 eee7808ab1df32b31ff74c8ca0172e129e8bbc9e..bbfa9d894eb2460ba6c2279f40e9a9a34974c365 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 f6522725517aad38da2ed95a22818a6f515fb84e..c7f679a2f2a34c6505294207ac0b17ef16e5078b 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 8cc788cf392babaccd15b4762446baffb2201d67..a765a184caa90fed055b1bc27e379461995389ae 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'