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
This commit is contained in:
Jonathan Wakely 2017-01-06 17:06:24 +00:00 committed by Jonathan Wakely
parent 834a27157d
commit ea4ad78e2c
3 changed files with 18 additions and 0 deletions

View 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>

View file

@ -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'

View 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'