summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2025-12-18 21:29:55 +0000
committerSam James <sam@gentoo.org>2025-12-18 21:30:45 +0000
commit46191b478ebcb6bc6831627526da44f04dfcd1be (patch)
treeb1102666fa4f5e856e794c6977841155f5b7e708
parentf3ec9226316f079cfffbb4640ca9a94124b95097 (diff)
downloadgentoo-46191b478ebcb6bc6831627526da44f04dfcd1be.tar.gz
gentoo-46191b478ebcb6bc6831627526da44f04dfcd1be.tar.bz2
gentoo-46191b478ebcb6bc6831627526da44f04dfcd1be.zip
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>
-rw-r--r--eclass/toolchain.eclass4
1 files changed, 4 insertions, 0 deletions
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 )