]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
configure.ac: Stack protector enabling for Android targets.
authorIgor Zamyatin <igor.zamyatin@intel.com>
Wed, 16 May 2012 09:59:04 +0000 (09:59 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Wed, 16 May 2012 09:59:04 +0000 (09:59 +0000)
        * configure.ac: Stack protector enabling for Android targets.
        * configure: Regenerate.

From-SVN: r187586

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 24e5a7a251994ae08dafdc5645f15a864125693f..2d2260fa45283e203bb4ce11ab1a304f26982d54 100644 (file)
@@ -1,3 +1,8 @@
+2012-05-16  Igor Zamyatin  <igor.zamyatin@intel.com>
+
+       * configure.ac: Stack protector enabling for Android targets.
+       * configure: Regenerate.
+
 2012-05-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
 
        * ira.c (pseudo_move_insn): Delete.
index 557a4cc794d237286e46457374e6d53f79afbd2f..4f43eaa7e5104eb4198621555177be16ddfbdb45 100755 (executable)
@@ -26657,6 +26657,11 @@ else
             $target_header_dir/bits/uClibc_config.h > /dev/null; then
          gcc_cv_libc_provides_ssp=yes
        fi
+      # all versions of Bionic support stack protector
+      elif test -f $target_header_dir/sys/cdefs.h \
+        && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
+           $target_header_dir/sys/cdefs.h > /dev/null; then
+         gcc_cv_libc_provides_ssp=yes
       fi
        ;;
        *-*-gnu*)
index 2c17736edf2e20cf38e68b160db888a085c9a91e..6b793c4b205a0d953de28d30b2e195edf27ff5bf 100644 (file)
@@ -4566,6 +4566,11 @@ AC_CACHE_CHECK(__stack_chk_fail in target C library,
             $target_header_dir/bits/uClibc_config.h > /dev/null; then
          gcc_cv_libc_provides_ssp=yes
        fi
+      # all versions of Bionic support stack protector
+      elif test -f $target_header_dir/sys/cdefs.h \
+        && $EGREP '^[  ]*#[    ]*define[       ]+__BIONIC__[   ]+1' \
+           $target_header_dir/sys/cdefs.h > /dev/null; then
+         gcc_cv_libc_provides_ssp=yes
       fi]
        ;;
        *-*-gnu*)