1 |
--- |
2 |
eclass/toolchain-glibc.eclass | 4 ++-- |
3 |
1 file changed, 2 insertions(+), 2 deletions(-) |
4 |
|
5 |
diff --git a/eclass/toolchain-glibc.eclass b/eclass/toolchain-glibc.eclass |
6 |
index 5be31eb193..270c9cdac7 100644 |
7 |
--- a/eclass/toolchain-glibc.eclass |
8 |
+++ b/eclass/toolchain-glibc.eclass |
9 |
@@ -266,7 +266,7 @@ setup_flags() { |
10 |
tc-enables-ssp && append-flags $(test-flags -fno-stack-protector) |
11 |
fi |
12 |
|
13 |
- if use hardened && gcc-specs-pie ; then |
14 |
+ if use hardened && tc-enables-pie ; then |
15 |
# Force PIC macro definition for all compilations since they're all |
16 |
# either -fPIC or -fPIE with the default-PIE compiler. |
17 |
append-cppflags -DPIC |
18 |
@@ -535,7 +535,7 @@ toolchain-glibc_pkg_pretend() { |
19 |
ewarn "hypervisor, which is probably not what you want." |
20 |
fi |
21 |
|
22 |
- use hardened && ! gcc-specs-pie && \ |
23 |
+ use hardened && ! tc-enables-pie && \ |
24 |
ewarn "PIE hardening not applied, as your compiler doesn't default to PIE" |
25 |
|
26 |
# Make sure host system is up to date #394453 |
27 |
-- |
28 |
2.13.0 |