summaryrefslogtreecommitdiff
path: root/sys-process/criu
diff options
context:
space:
mode:
authorRahul Chaudhry <rahulchaudhry@chromium.org>2018-05-07 02:35:51 -0400
committerMike Frysinger <vapier@gentoo.org>2018-05-07 02:37:10 -0400
commite0cd3d9f23b1d6caa25abcc9aaf4521c52dabc03 (patch)
tree50f4d61d742f94a2af2cef61e22c56c5db040514 /sys-process/criu
parent5031b0bd347845fbeb2babc8b35e0359ccce0729 (diff)
downloadgentoo-e0cd3d9f23b1d6caa25abcc9aaf4521c52dabc03.tar.gz
gentoo-e0cd3d9f23b1d6caa25abcc9aaf4521c52dabc03.tar.xz
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.
Diffstat (limited to 'sys-process/criu')
-rw-r--r--sys-process/criu/criu-3.7.ebuild6
1 files changed, 6 insertions, 0 deletions
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)" \