eclass/toolchain: Sync with Gentoo

It's from Gentoo commit 7141b8da59057bac80b0e2e5d5ea34a70770ece2.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2025-11-03 07:11:00 +00:00 committed by Krzesimir Nowak
parent 02043babc5
commit f57cbd92a3

View File

@ -340,7 +340,7 @@ if [[ ${PN} != kgcc64 && ${PN} != gcc-* ]] ; then
tc_version_is_at_least 14.1 ${PV} && IUSE+=" rust" TC_FEATURES+=( rust )
tc_version_is_at_least 13.3.1_p20250522 ${PV} && IUSE+=" time64"
tc_version_is_at_least 15.1 ${PV} && IUSE+=" libgdiagnostics"
tc_version_is_at_least 15.1 ${PV} && IUSE+=" cobol"
tc_version_is_at_least 15.1 ${PV} && IUSE+=" cobol" TC_FEATURES+=( cobol )
fi
if tc_version_is_at_least 10; then
@ -363,6 +363,10 @@ GMP_MPFR_DEPS=">=dev-libs/gmp-4.3.2:0= >=dev-libs/mpfr-2.4.2:0="
RDEPEND+=" ${GMP_MPFR_DEPS}"
RDEPEND+=" >=dev-libs/mpc-0.8.1:0="
if tc_has_feature cobol && tc_version_is_at_least 16.0.0_p20251019 ; then
RDEPEND+=" cobol? ( dev-libs/libxml2:= )"
fi
if tc_has_feature objc-gc ; then
RDEPEND+=" objc-gc? ( >=dev-libs/boehm-gc-7.4.2 )"
fi