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@gentoo.org>
This commit is contained in:
Sam James
2025-12-18 21:29:55 +00:00
parent f3ec922631
commit 46191b478e

View File

@@ -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 )