commit: e0cd3d9f23b1d6caa25abcc9aaf4521c52dabc03
Author: Rahul Chaudhry <rahulchaudhry <AT> chromium <DOT> org>
AuthorDate: Mon May 7 06:35:51 2018 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Mon May 7 06:37:10 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0cd3d9f
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.
sys-process/criu/criu-3.7.ebuild | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sys-process/criu/criu-3.7.ebuild b/sys-process/criu/criu-3.7.ebuild
index 1c2c80e5b56..9a72bb4c705 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)" \