Skip to content

Commit

Permalink
eclass/toolchain-glibc.eclass: use tc-enables-pie instead of gcc-spec…
Browse files Browse the repository at this point in the history
…s-pie
  • Loading branch information
tamiko committed Jun 16, 2017
1 parent 28ec20d commit d33b49b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eclass/toolchain-glibc.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d33b49b

Please sign in to comment.