commit: b6706bf513d4ddfd48b16871ecb062746aab6dec Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Apr 13 11:44:34 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Apr 13 11:45:17 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6706bf5
toolchain.eclass: fix GCC 8 with USE=jit This has been broken for a year(!) since 28fca56a1639578fc58de1e8310b7c94a5e12e09. Bug: https://bugs.gentoo.org/926953 Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/toolchain.eclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 273a2b9f92c9..b6cc4df5364a 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1921,10 +1921,13 @@ toolchain_src_configure() { # respect USE=graphite here in case the user passes some # graphite flags rather than try strip them out. $(use_with graphite isl) - $(use_with zstd) --with-system-zlib ) + if tc_has_feature zstd ; then + confgcc_jit+=( $(use_with zstd) ) + fi + if tc_version_is_at_least 15.0.0_pre20241124 ${PV} ; then confgcc_jit+=( $(use_enable libgdiagnostics) ) fi
