configure: accept __stack_chk_fail_local for ssp support too [BZ #20662]
commitc7409aded44634411a19b0b7178b7faa237835e6
authorDenis Kaganovich <mahatma@eu.by>
Thu, 20 Oct 2016 20:01:39 +0000 (20 22:01 +0200)
committerMike Frysinger <vapier@gentoo.org>
Tue, 15 Nov 2016 19:15:19 +0000 (15 14:15 -0500)
treea3fbfec4d7a785a397fe9bb2fed98c7dbf86b855
parent001f81ad1e792dddd75aa8a6f9d1d9b0ba8dc16e
configure: accept __stack_chk_fail_local for ssp support too [BZ #20662]

When glibc is compiled with gcc 6.2 that has been configured with
--enable-default-pie and --enable-default-ssp, the configure script
fails to detect that the compiler has ssp turned on by default when
being built for i686-linux-gnu.

This is because gcc is emitting __stack_chk_fail_local but the
script is only looking for __stack_chk_fail.  Support both.

Example output:
checking whether x86_64-pc-linux-gnu-gcc -m32 -Wl,-O1 -Wl,--as-needed
implicitly enables -fstack-protector... no
ChangeLog
configure
configure.ac