mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
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:
commit
33c1f1bbe3
@ -26,7 +26,13 @@ IUSE=""
|
||||
DEPEND=">=dev-lang/go-1.2"
|
||||
|
||||
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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user