Merge pull request #917 from vcaputo/locksmith_hardened_gcc_workaround

Supply "-extldflags -fno-PIC" to locksmith GOLDFLAGS on hardened gcc
This commit is contained in:
Vito Caputo 2014-10-13 16:13:20 -07:00
commit 33c1f1bbe3
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() {