1 |
commit: 590daa6d79ad4ae1c082762b356f6f07b4375ee3 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 30 21:17:40 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 30 21:22:52 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=590daa6d |
7 |
|
8 |
toolchain.eclass: avoid libquadmath in stage1-gcc |
9 |
|
10 |
libquadmath relies on libc presence (sqrt symbols). |
11 |
When initial toolchain is bootstrapped libc is not |
12 |
available yet. |
13 |
|
14 |
The change disables libquadmath for bootstrap cases |
15 |
when libc is not installed yet. gcc-stage2 still |
16 |
uses platform defaults for libquadmath. |
17 |
|
18 |
Reported-by: Andrew Aladjev |
19 |
Closes: https://bugs.gentoo.org/734820 |
20 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
21 |
|
22 |
eclass/toolchain.eclass | 3 +++ |
23 |
1 file changed, 3 insertions(+) |
24 |
|
25 |
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
26 |
index c7d8c104c9b..3867bd2b9f8 100644 |
27 |
--- a/eclass/toolchain.eclass |
28 |
+++ b/eclass/toolchain.eclass |
29 |
@@ -1030,6 +1030,9 @@ toolchain_src_configure() { |
30 |
esac |
31 |
if [[ -n ${needed_libc} ]] ; then |
32 |
local confgcc_no_libc=( --disable-shared ) |
33 |
+ # requires libc: bug #734820 |
34 |
+ tc_version_is_at_least 4.6 && confgcc_no_libc+=( --disable-libquadmath ) |
35 |
+ # requires libc |
36 |
tc_version_is_at_least 4.8 && confgcc_no_libc+=( --disable-libatomic ) |
37 |
if ! has_version ${CATEGORY}/${needed_libc} ; then |
38 |
confgcc+=( |