commit: 46191b478ebcb6bc6831627526da44f04dfcd1be Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu Dec 18 21:29:55 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Dec 18 21:30:45 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46191b47
toolchain.eclass: default to -mtls-dialect=gnu2 with GCC 16 on x86_64 Bug: https://gcc.gnu.org/PR120933 Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/toolchain.eclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 92e48b66979f..aaf24c50426b 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1581,6 +1581,10 @@ toolchain_src_configure() { --enable-__cxa_atexit --enable-clocale=gnu ) + + if [[ ${CTARGET} == *linux* ]] && tc_version_is_at_least 16.0.0_p20251214 ${PV} ; then + confgcc+=( --with-tls=gnu2 ) + fi ;; *-solaris*) confgcc+=( --enable-__cxa_atexit )
