diff options
author | Eric Christopher <echristo@gcc.gnu.org> | 2007-01-07 23:53:21 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gcc.gnu.org> | 2007-01-07 23:53:21 +0000 |
commit | a6ccdbabfd0a2faf47d98be113f484917c09e3a4 (patch) | |
tree | 32be05b2175477a45eb748ad4f6a776db86c9821 /gcc/configure.ac | |
parent | 16fd4d2d7102abb179d958d10ba6cf28d8f621a6 (diff) | |
download | gcc-a6ccdbabfd0a2faf47d98be113f484917c09e3a4.zip gcc-a6ccdbabfd0a2faf47d98be113f484917c09e3a4.tar.gz gcc-a6ccdbabfd0a2faf47d98be113f484917c09e3a4.tar.bz2 |
configure.ac: Check for __stack_chk_fail for darwin.
2007-01-07 Eric Christopher <echristo@apple.com>
* configure.ac: Check for __stack_chk_fail for darwin.
* configure: Regenerate.
From-SVN: r120559
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r-- | gcc/configure.ac | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac index b7d0197..ddacafb 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -3328,11 +3328,11 @@ if test x$with_sysroot = x && test x$host = x$target \ fi # Test for stack protector support in target C library. -case "$target" in - *-*-linux*) - AC_CACHE_CHECK(__stack_chk_fail in target GNU C library, +AC_CACHE_CHECK(__stack_chk_fail in target C library, gcc_cv_libc_provides_ssp, [gcc_cv_libc_provides_ssp=no + case "$target" in + *-*-linux*) if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then if test "x$with_sysroot" = x; then glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include" @@ -3358,9 +3358,15 @@ case "$target" in $glibc_header_dir/features.h > /dev/null; then gcc_cv_libc_provides_ssp=yes fi - fi]) ;; + fi + ;; + *-*-darwin*) + AC_CHECK_FUNC(__stack_chk_fail,[gcc_cv_libc_provides_ssp=yes], + [echo "no __stack_chk_fail on this target"]) + ;; *) gcc_cv_libc_provides_ssp=no ;; -esac + esac]) + if test x$gcc_cv_libc_provides_ssp = xyes; then AC_DEFINE(TARGET_LIBC_PROVIDES_SSP, 1, [Define if your target C library provides stack protector support]) |