Supply "-extldflags -fno-PIC" to locksmith GOLDFLAGS on hardened gcc

A similar workaround is utilized in the docker ebuild, see:
https://bugs.gentoo.org/show_bug.cgi?id=493328
This commit is contained in:
Vito Caputo 2014-10-13 16:39:32 -04:00
parent 1ca106674c
commit 5f6d5922af
2 changed files with 7 additions and 1 deletions

View File

@ -26,7 +26,13 @@ IUSE=""
DEPEND=">=dev-lang/go-1.2" DEPEND=">=dev-lang/go-1.2"
src_compile() { src_compile() {
./build || die # work around gentoo hardened gcc incompatibilities with cgo
# see https://bugs.gentoo.org/show_bug.cgi?id=493328
if gcc-specs-pie; then
GOLDFLAGS="-extldflags -fno-PIC"
fi
GOLDFLAGS=${GOLDFLAGS} ./build || die
} }
src_install() { src_install() {