summaryrefslogtreecommitdiffstats
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorkyukhin <kyukhin@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-16 09:59:04 +0000
committerkyukhin <kyukhin@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-16 09:59:04 +0000
commite54ce7078fcc30fe6aabeb9d372343d7435b6eb2 (patch)
tree6afb2cc9812566f23ee32114bc130b6e3a14a044 /gcc/configure.ac
parenta8b8e9283a73c3392a805b6e79c82363a74a5d56 (diff)
downloadppe42-gcc-e54ce7078fcc30fe6aabeb9d372343d7435b6eb2.tar.gz
ppe42-gcc-e54ce7078fcc30fe6aabeb9d372343d7435b6eb2.zip
* configure.ac: Stack protector enabling for Android targets.
* configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187586 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 2c17736edf2..6b793c4b205 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -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*)
OpenPOWER on IntegriCloud