1 |
commit: ec2b13a11a6b5712817b20dab096a668f4afd06f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 29 15:03:37 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 29 15:04:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec2b13a1 |
7 |
|
8 |
sys-devel/clang: Pass -Wl,--no-keep-memory to linker on x86 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/712052 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
sys-devel/clang/clang-10.0.0.ebuild | 4 ++++ |
14 |
sys-devel/clang/clang-10.0.1.9999.ebuild | 4 ++++ |
15 |
sys-devel/clang/clang-10.0.1_rc1.ebuild | 4 ++++ |
16 |
sys-devel/clang/clang-11.0.0.9999.ebuild | 4 ++++ |
17 |
4 files changed, 16 insertions(+) |
18 |
|
19 |
diff --git a/sys-devel/clang/clang-10.0.0.ebuild b/sys-devel/clang/clang-10.0.0.ebuild |
20 |
index aae5ad123f0..564bc4664b1 100644 |
21 |
--- a/sys-devel/clang/clang-10.0.0.ebuild |
22 |
+++ b/sys-devel/clang/clang-10.0.0.ebuild |
23 |
@@ -234,6 +234,10 @@ multilib_src_configure() { |
24 |
) |
25 |
fi |
26 |
|
27 |
+ # LLVM can have very high memory consumption while linking, |
28 |
+ # exhausting the limit on 32-bit linker executable |
29 |
+ use x86 && local -x LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory" |
30 |
+ |
31 |
# LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
32 |
use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" |
33 |
cmake-utils_src_configure |
34 |
|
35 |
diff --git a/sys-devel/clang/clang-10.0.1.9999.ebuild b/sys-devel/clang/clang-10.0.1.9999.ebuild |
36 |
index 2b8d5fee058..944ffa67b3d 100644 |
37 |
--- a/sys-devel/clang/clang-10.0.1.9999.ebuild |
38 |
+++ b/sys-devel/clang/clang-10.0.1.9999.ebuild |
39 |
@@ -289,6 +289,10 @@ multilib_src_configure() { |
40 |
) |
41 |
fi |
42 |
|
43 |
+ # LLVM can have very high memory consumption while linking, |
44 |
+ # exhausting the limit on 32-bit linker executable |
45 |
+ use x86 && local -x LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory" |
46 |
+ |
47 |
# LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
48 |
use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" |
49 |
cmake_src_configure |
50 |
|
51 |
diff --git a/sys-devel/clang/clang-10.0.1_rc1.ebuild b/sys-devel/clang/clang-10.0.1_rc1.ebuild |
52 |
index db3798d217b..ec222215357 100644 |
53 |
--- a/sys-devel/clang/clang-10.0.1_rc1.ebuild |
54 |
+++ b/sys-devel/clang/clang-10.0.1_rc1.ebuild |
55 |
@@ -289,6 +289,10 @@ multilib_src_configure() { |
56 |
) |
57 |
fi |
58 |
|
59 |
+ # LLVM can have very high memory consumption while linking, |
60 |
+ # exhausting the limit on 32-bit linker executable |
61 |
+ use x86 && local -x LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory" |
62 |
+ |
63 |
# LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
64 |
use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" |
65 |
cmake_src_configure |
66 |
|
67 |
diff --git a/sys-devel/clang/clang-11.0.0.9999.ebuild b/sys-devel/clang/clang-11.0.0.9999.ebuild |
68 |
index 5991c42d4c6..76cb2b8d998 100644 |
69 |
--- a/sys-devel/clang/clang-11.0.0.9999.ebuild |
70 |
+++ b/sys-devel/clang/clang-11.0.0.9999.ebuild |
71 |
@@ -284,6 +284,10 @@ multilib_src_configure() { |
72 |
) |
73 |
fi |
74 |
|
75 |
+ # LLVM can have very high memory consumption while linking, |
76 |
+ # exhausting the limit on 32-bit linker executable |
77 |
+ use x86 && local -x LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory" |
78 |
+ |
79 |
# LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
80 |
use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" |
81 |
cmake_src_configure |