summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-07-30 22:17:40 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-07-30 22:22:52 +0100
commit590daa6d79ad4ae1c082762b356f6f07b4375ee3 (patch)
treeeb60c98d17429b7fb0fe6a8050ede2f7c4836cdc /eclass/toolchain.eclass
parentnet-libs/webkit-gtk: security cleanup (diff)
downloadgentoo-590daa6d79ad4ae1c082762b356f6f07b4375ee3.tar.gz
gentoo-590daa6d79ad4ae1c082762b356f6f07b4375ee3.tar.bz2
gentoo-590daa6d79ad4ae1c082762b356f6f07b4375ee3.zip
toolchain.eclass: avoid libquadmath in stage1-gcc
libquadmath relies on libc presence (sqrt symbols). When initial toolchain is bootstrapped libc is not available yet. The change disables libquadmath for bootstrap cases when libc is not installed yet. gcc-stage2 still uses platform defaults for libquadmath. Reported-by: Andrew Aladjev Closes: https://bugs.gentoo.org/734820 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index c7d8c104c9bd..3867bd2b9f82 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1030,6 +1030,9 @@ toolchain_src_configure() {
esac
if [[ -n ${needed_libc} ]] ; then
local confgcc_no_libc=( --disable-shared )
+ # requires libc: bug #734820
+ tc_version_is_at_least 4.6 && confgcc_no_libc+=( --disable-libquadmath )
+ # requires libc
tc_version_is_at_least 4.8 && confgcc_no_libc+=( --disable-libatomic )
if ! has_version ${CATEGORY}/${needed_libc} ; then
confgcc+=(