mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
toolchain-glibc.eclass: Always enable stack guard randomization (bug #621742).
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
This commit is contained in:
committed by
Matthias Maier
parent
9fe8087634
commit
28ec20d517
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user