summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-03-21 18:22:46 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2020-03-21 18:25:07 +0000
commitef09a1ebcb55ed24ef59c13febd55a49337aefb9 (patch)
treea49048947dfc9458c75840b6ce5db2ef5edcd787 /eclass/toolchain.eclass
parentmedia-sound/cantata: Update PLOCALES (diff)
downloadgentoo-ef09a1ebcb55ed24ef59c13febd55a49337aefb9.tar.gz
gentoo-ef09a1ebcb55ed24ef59c13febd55a49337aefb9.tar.bz2
gentoo-ef09a1ebcb55ed24ef59c13febd55a49337aefb9.zip
toolchain.eclass: drop USE=sanitize support for <gcc-5
Sanitizer support appeared in gcc-4.8, but <gcc-5 does not support modern glibc. Let's just drop support for it on older gccs. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass15
1 files changed, 10 insertions, 5 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 7135af0817d9..ee466ee4d904 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -172,8 +172,9 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
tc_version_is_at_least 4.2 && IUSE+=" +openmp"
tc_version_is_at_least 4.3 && IUSE+=" fixed-point"
tc_version_is_at_least 4.7 && IUSE+=" go"
- tc_version_is_at_least 4.8 &&
- IUSE+=" +sanitize"
+ # sanitizer support appeared in gcc-4.8, but <gcc-5 does not
+ # support modern glibc.
+ tc_version_is_at_least 5 && IUSE+=" +sanitize"
# Note:
# <gcc-4.8 supported graphite, it required forked ppl
# versions which we dropped. Since graphite was also experimental in
@@ -1318,9 +1319,13 @@ toolchain_src_configure() {
confgcc+=( --without-{cloog,ppl} )
fi
- if tc_version_is_at_least 4.8 && in_iuse sanitize ; then
- # See Note [implicitly enabled flags]
- confgcc+=( $(usex sanitize '' --disable-libsanitizer) )
+ if tc_version_is_at_least 4.8; then
+ if in_iuse sanitize ; then
+ # See Note [implicitly enabled flags]
+ confgcc+=( $(usex sanitize '' --disable-libsanitizer) )
+ else
+ confgcc+=( --disable-libsanitizer )
+ fi
fi
if tc_version_is_at_least 6.0 && in_iuse pie ; then