diff options
author | Jing Yu <jingyu@google.com> | 2012-05-18 15:13:48 -0700 |
---|---|---|
committer | Jing Yu <jingyu@google.com> | 2012-05-18 15:13:48 -0700 |
commit | 5f2f4ef69e2f64970aad2c303a529c49789021d8 (patch) | |
tree | 0333bf6197de650b955f59052d23889c374b58eb /gcc-4.6/gcc/configure.ac | |
parent | 5ac5f4e1140f42e3acf9a59fb7f92b28fcb94203 (diff) | |
download | toolchain_gcc-5f2f4ef69e2f64970aad2c303a529c49789021d8.tar.gz toolchain_gcc-5f2f4ef69e2f64970aad2c303a529c49789021d8.tar.bz2 toolchain_gcc-5f2f4ef69e2f64970aad2c303a529c49789021d8.zip |
2012-05-18 Jing Yu <jingyu@google.com>
Backport from trunk r187586:
2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
* configure.ac: Stack protector enabling for Android targets.
* configure: Regenerate.
Change-Id: I3ccde181a343994525b29edd9dd2df4789acf7b7
Diffstat (limited to 'gcc-4.6/gcc/configure.ac')
-rw-r--r-- | gcc-4.6/gcc/configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc-4.6/gcc/configure.ac b/gcc-4.6/gcc/configure.ac index 4a496edc7..3bd294755 100644 --- a/gcc-4.6/gcc/configure.ac +++ b/gcc-4.6/gcc/configure.ac @@ -4415,6 +4415,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*) |