commit: 00bf571e6cbf1a44ce7e1d164aa7bf38eab6ed40
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 15 16:50:09 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug 15 17:08:30 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00bf571e
toolchain.eclass: extend GCC 12 workaround for older GCCs
Needed to build older GCCs with GCC 12. Noticed w/ 9.5.0.
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index fe1e209fb2d5..ed473e0c626f 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -880,7 +880,7 @@ toolchain_src_configure() {
downgrade_arch_flags
gcc_do_filter_flags
- if tc_version_is_between 10 11 && [[ $(gcc-major-version) -ge 12 ]] ;
then
+ if ! tc_version_is_at_least 11 && [[ $(gcc-major-version) -ge 12 ]] ;
then
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105695
# bug #849359
export ac_cv_std_swap_in_utility=no