summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-26 03:28:56 +0100
committerSam James <sam@gentoo.org>2022-06-26 04:43:11 +0100
commit349099563cad4211b788e57bc640942bf37e7da3 (patch)
treed7532274f9144bc8306f847fad1ce2742c269ed6 /eclass
parentsci-libs/dealii: build with c++17 support the right way... (diff)
downloadgentoo-349099563cad4211b788e57bc640942bf37e7da3.tar.gz
gentoo-349099563cad4211b788e57bc640942bf37e7da3.tar.bz2
gentoo-349099563cad4211b788e57bc640942bf37e7da3.zip
toolchain.eclass: workaround build failure for GCC 10 with GCC 12
Closes: https://bugs.gentoo.org/849359 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index c83678f41d2e..caabb5f25fa1 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -877,6 +877,12 @@ toolchain_src_configure() {
downgrade_arch_flags
gcc_do_filter_flags
+ if tc_version_is_between 10 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
+ fi
+
einfo "CFLAGS=\"${CFLAGS}\""
einfo "CXXFLAGS=\"${CXXFLAGS}\""
einfo "LDFLAGS=\"${LDFLAGS}\""