From: Rahul Chaudhry Date: Mon, 7 May 2018 06:35:51 +0000 (-0400) Subject: sys-process/criu: disable use of the gold linker X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e0cd3d9f23b1d6caa25abcc9aaf4521c52dabc03;p=gentoo.git sys-process/criu: disable use of the gold linker The criu build process uses a custom linker script that doesn't play well the output of the gold linker leading to build failures. Disable gold for now to avoid this. --- diff --git a/sys-process/criu/criu-3.7.ebuild b/sys-process/criu/criu-3.7.ebuild index 1c2c80e5b56a..9a72bb4c7059 100644 --- a/sys-process/criu/criu-3.7.ebuild +++ b/sys-process/criu/criu-3.7.ebuild @@ -66,6 +66,12 @@ src_prepare() { fi } +src_configure() { + # Gold linker generates invalid object file when used with criu's custom + # linker script. Use the bfd linker instead. See https://crbug.com/839665#c3 + tc-ld-disable-gold +} + src_compile() { RAW_LDFLAGS="$(raw-ldflags)" emake \ CC="$(tc-getCC)" \