1 |
commit: e0cd3d9f23b1d6caa25abcc9aaf4521c52dabc03 |
2 |
Author: Rahul Chaudhry <rahulchaudhry <AT> chromium <DOT> org> |
3 |
AuthorDate: Mon May 7 06:35:51 2018 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 7 06:37:10 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0cd3d9f |
7 |
|
8 |
sys-process/criu: disable use of the gold linker |
9 |
|
10 |
The criu build process uses a custom linker script that doesn't play |
11 |
well the output of the gold linker leading to build failures. Disable |
12 |
gold for now to avoid this. |
13 |
|
14 |
sys-process/criu/criu-3.7.ebuild | 6 ++++++ |
15 |
1 file changed, 6 insertions(+) |
16 |
|
17 |
diff --git a/sys-process/criu/criu-3.7.ebuild b/sys-process/criu/criu-3.7.ebuild |
18 |
index 1c2c80e5b56..9a72bb4c705 100644 |
19 |
--- a/sys-process/criu/criu-3.7.ebuild |
20 |
+++ b/sys-process/criu/criu-3.7.ebuild |
21 |
@@ -66,6 +66,12 @@ src_prepare() { |
22 |
fi |
23 |
} |
24 |
|
25 |
+src_configure() { |
26 |
+ # Gold linker generates invalid object file when used with criu's custom |
27 |
+ # linker script. Use the bfd linker instead. See https://crbug.com/839665#c3 |
28 |
+ tc-ld-disable-gold |
29 |
+} |
30 |
+ |
31 |
src_compile() { |
32 |
RAW_LDFLAGS="$(raw-ldflags)" emake \ |
33 |
CC="$(tc-getCC)" \ |