backport: configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.

Backport from mainline:
	2009-09-11  Loren J. Rittle  <ljrittle@acm.org>

	* configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
	* configure: Regenerate.

From-SVN: r161047
This commit is contained in:
Gerald Pfeifer 2010-06-20 15:43:53 +00:00 committed by Gerald Pfeifer
parent 56fdc8e076
commit 80c0c6229b
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2010-06-20 Gerald Pfeifer <gerald@pfeifer.com>
Backport from mainline:
2009-09-11 Loren J. Rittle <ljrittle@acm.org>
* configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
* configure: Regenerate.
2010-06-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Backport from mainline

2
gcc/configure vendored
View File

@ -24443,7 +24443,7 @@ else
# simply assert that glibc does provide this, which is true for all
# realistically usable GNU/Hurd configurations.
gcc_cv_libc_provides_ssp=yes;;
*-*-darwin*)
*-*-darwin* | *-*-freebsd*)
echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
if test "${ac_cv_func___stack_chk_fail+set}" = set; then

View File

@ -3669,7 +3669,7 @@ AC_CACHE_CHECK(__stack_chk_fail in target C library,
# simply assert that glibc does provide this, which is true for all
# realistically usable GNU/Hurd configurations.
gcc_cv_libc_provides_ssp=yes;;
*-*-darwin*)
*-*-darwin* | *-*-freebsd*)
AC_CHECK_FUNC(__stack_chk_fail,[gcc_cv_libc_provides_ssp=yes],
[echo "no __stack_chk_fail on this target"])
;;