summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2017-06-14 10:20:39 -0500
committerMatthias Maier <tamiko@gentoo.org>2017-06-16 03:23:35 -0500
commitd33b49b8ca2afafbb1e6827dea8cd851f6658f99 (patch)
treef21d60e671334a26d13dd3bff7fde143ebab7e1a /eclass/toolchain-glibc.eclass
parenttoolchain-glibc.eclass: Always enable stack guard randomization (bug #621742). (diff)
downloadgentoo-d33b49b8ca2afafbb1e6827dea8cd851f6658f99.tar.gz
gentoo-d33b49b8ca2afafbb1e6827dea8cd851f6658f99.tar.bz2
gentoo-d33b49b8ca2afafbb1e6827dea8cd851f6658f99.zip
eclass/toolchain-glibc.eclass: use tc-enables-pie instead of gcc-specs-pie
Diffstat (limited to 'eclass/toolchain-glibc.eclass')
-rw-r--r--eclass/toolchain-glibc.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/toolchain-glibc.eclass b/eclass/toolchain-glibc.eclass
index d1e79975ccff..1667f1ac7ad6 100644
--- a/eclass/toolchain-glibc.eclass
+++ b/eclass/toolchain-glibc.eclass
@@ -266,7 +266,7 @@ setup_flags() {
tc-enables-ssp && append-flags $(test-flags -fno-stack-protector)
fi
- if use hardened && gcc-specs-pie ; then
+ if use hardened && tc-enables-pie ; then
# Force PIC macro definition for all compilations since they're all
# either -fPIC or -fPIE with the default-PIE compiler.
append-cppflags -DPIC
@@ -535,7 +535,7 @@ toolchain-glibc_pkg_pretend() {
ewarn "hypervisor, which is probably not what you want."
fi
- use hardened && ! gcc-specs-pie && \
+ use hardened && ! tc-enables-pie && \
ewarn "PIE hardening not applied, as your compiler doesn't default to PIE"
# Make sure host system is up to date #394453