toolchain.eclass: use lib*, not get_libdir for cross

get_libdir isn't right for ROOT and cross-compilation.

Closes: https://bugs.gentoo.org/908455
Bug: https://bugs.gentoo.org/794181
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-01-21 23:12:54 +00:00
parent 4c97807a7f
commit b9c5c7723b
+3 -1
View File
@@ -2749,7 +2749,9 @@ gcc_movelibs() {
# code to run on the target.
if is_crosscompile ; then
dodir "${HOSTLIBPATH#${EPREFIX}}"
mv "${ED}"/usr/$(get_libdir)/libcc1* "${D}${HOSTLIBPATH}" || die
# XXX: Ideally, we'd use $(get_libdir) here, but it's
# not right for cross. See bug #942573 and bug #794181.
mv "${ED}"/usr/lib*/libcc1* "${D}${HOSTLIBPATH}" || die
fi
# libgccjit gets installed to /usr/lib, not /usr/$(get_libdir). Probably