toolchain-glibc.eclass: Always enable stack guard randomization (bug #621742).

Signed-off-by: Matthias Maier <tamiko@gentoo.org>
This commit is contained in:
Arfrever Frehtes Taifersar Arahesis
2017-06-14 17:00:32 +02:00
committed by Matthias Maier
parent 9fe8087634
commit 28ec20d517

View File

@@ -780,7 +780,6 @@ glibc_do_configure() {
[[ -d ports ]] && addons+=",ports"
popd > /dev/null
myconf+=( $(use_enable hardened stackguard-randomization) )
if has_version '<sys-libs/glibc-2.13' ; then
myconf+=( --enable-old-ssp-compat )
fi
@@ -789,6 +788,12 @@ glibc_do_configure() {
myconf+=( --enable-stack-protector=all )
fi
if version_is_at_least 2.25 ; then
myconf+=( --enable-stackguard-randomization )
else
myconf+=( $(use_enable hardened stackguard-randomization) )
fi
[[ $(tc-is-softfloat) == "yes" ]] && myconf+=( --without-fp )
if [[ $1 == "linuxthreads" ]] ; then