diff options
Diffstat (limited to 'hardened/toolchain/branches/gcc-glibc-nopie/eclass/toolchain.eclass')
-rw-r--r-- | hardened/toolchain/branches/gcc-glibc-nopie/eclass/toolchain.eclass | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hardened/toolchain/branches/gcc-glibc-nopie/eclass/toolchain.eclass b/hardened/toolchain/branches/gcc-glibc-nopie/eclass/toolchain.eclass index a168e07..9d73035 100644 --- a/hardened/toolchain/branches/gcc-glibc-nopie/eclass/toolchain.eclass +++ b/hardened/toolchain/branches/gcc-glibc-nopie/eclass/toolchain.eclass @@ -1598,6 +1598,18 @@ gcc_src_compile() { concat_minispecs vanilla.specs "${WORKDIR}" build.specs fi export GCC_SPECS="${WORKDIR}"/build.specs + else + if gcc-specs-pie ; then + if use hardened ; then + [[ -f $(gcc-install-dir)/hardenednopiessp.specs ]] || + die "Couldn't find hardenednopiessp.specs" + export GCC_SPECS="hardenednopiessp.specs" + else + [[ -f $(gcc-install-dir)/vanilla.specs ]] || + die "Couldn't find vanilla.specs" + export GCC_SPECS="vanilla.specs" + fi + fi fi # Build in a separate build tree |