This fixes build failure of shared libraries on gcc-6.3.0
Reported-by: Helmut Jarausch
Bug: https://bugs.gentoo.org/609624
Package-Manager: Portage-2.3.3, Repoman-2.3.1
# gcc-6.3 has support for -no-pie upstream, but spelling differs from
# gentoo-specific '-nopie'. We enable it in non-bootstrap to allow
# hardened users try '-pie' in USE=ghcbootstrap mode.
- append-ghc-cflags persistent compile link -no-pie
+ append-ghc-cflags compile link -no-pie
fi
gcc-specs-ssp && append-ghc-cflags persistent compile -fno-stack-protector
# gcc-6.3 has support for -no-pie upstream, but spelling differs from
# gentoo-specific '-nopie'. We enable it in non-bootstrap to allow
# hardened users try '-pie' in USE=ghcbootstrap mode.
- append-ghc-cflags persistent compile link -no-pie
+ append-ghc-cflags compile link -no-pie
fi
# prevent from failind building unregisterised ghc: