From a033fc5fd2ec97f3d120b349b650173bf522d5e3 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 9 Mar 2026 07:29:46 +0000 Subject: [PATCH] eclass/toolchain: Sync with Gentoo It's from Gentoo commit eccf647e5ed9dc7d3337f893cc46f0183528ff1f. Signed-off-by: Flatcar Buildbot --- .../src/third_party/portage-stable/eclass/toolchain.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/toolchain.eclass b/sdk_container/src/third_party/portage-stable/eclass/toolchain.eclass index d051ef4dc2..da25e1dfc5 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/toolchain.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/toolchain.eclass @@ -2791,7 +2791,7 @@ gcc_movelibs() { # that you want to link against when building tools rather than building # code to run on the target. if is_crosscompile ; then - dodir "${HOSTLIBPATH#${EPREFIX}}" + dodir "${HOSTLIBPATH#"${EPREFIX}"}" # XXX: Ideally, we'd use $(get_libdir) here, but it's # not right for cross. See bug #942573 and bug #794181. if [[ ${GCC_BUILD_PLUGINS} == 1 ]] ; then @@ -2801,7 +2801,7 @@ gcc_movelibs() { # libgccjit gets installed to /usr/lib, not /usr/$(get_libdir). Probably # due to a bug in gcc build system. - dodir "${LIBPATH#${EPREFIX}}" + dodir "${LIBPATH#"${EPREFIX}"}" if is_jit ; then mv "${ED}"/usr/lib/libgccjit* "${D}${LIBPATH}" || die