diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-06-10 08:27:37 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-06-10 08:30:22 +0100 |
commit | 53f215aa249d71fa96cb9b7874d2759b09a9dc64 (patch) | |
tree | b8f9f3532d296bade0788e7d71cb6a0f300ff03d /eclass | |
parent | media-libs/lv2: removed obsolete 1.14.0-r2 (diff) | |
download | gentoo-53f215aa249d71fa96cb9b7874d2759b09a9dc64.tar.gz gentoo-53f215aa249d71fa96cb9b7874d2759b09a9dc64.tar.bz2 gentoo-53f215aa249d71fa96cb9b7874d2759b09a9dc64.zip |
toolchain.eclass: drop unused --enable-altivec
--enable-altivec does not do anything since gcc-4:
https://gcc.gnu.org/legacy-ml/gcc/2005-03/msg01091.html
The change drops passing of --enable-altivec for all gcc versions and
drops IUSE=altivec for gcc-10+.
Once gcc-10 is stable everywhere we can drop IUSE=altivec for all gcc
versions.
Reported-by: Georgy Yakovlev
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index a8fd3e953bc3..1e164957b2b8 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -155,7 +155,13 @@ tc_has_feature() { } if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then - IUSE+=" altivec debug +cxx +nptl" TC_FEATURES+=(nptl) + # --enable-altivec was dropped before gcc-4. We don't set it. + # We drop USE=altivec for newer gccs only to avoid rebuilds + # for most stable users. Once gcc-10 is stable we can drop it. + if ! tc_version_is_at_least 10; then + IUSE+=" altivec" + fi + IUSE+=" debug +cxx +nptl" TC_FEATURES+=(nptl) [[ -n ${PIE_VER} ]] && IUSE+=" nopie" [[ -n ${HTB_VER} ]] && IUSE+=" boundschecking" [[ -n ${D_VER} ]] && IUSE+=" d" @@ -1090,9 +1096,6 @@ toolchain_src_configure() { gcc-multilib-configure - # ppc altivec support - in_iuse altivec && confgcc+=( $(use_enable altivec) ) - # gcc has fixed-point arithmetic support in 4.3 for mips targets that can # significantly increase compile time by several hours. This will allow # users to control this feature in the event they need the support. |