mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-06 18:02:02 +01:00
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:
parent
1ca106674c
commit
5f6d5922af
@ -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() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user