mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
toolchain.eclass: extend JIT location hack to libgdiagnostics too
libgccjit is strange in that it's a non-internal library installed by GCC and isn't intended to be interacted with via some magic options like -fopenmp or whatever, but just linked like a regular library. libgdiagnostics is the same, so extend the same treatment to it. Thanks to tdr for testing. Closes: https://bugs.gentoo.org/953823 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -2782,10 +2782,15 @@ gcc_movelibs() {
|
||||
# libgccjit gets installed to /usr/lib, not /usr/$(get_libdir). Probably
|
||||
# due to a bug in gcc build system.
|
||||
if [[ ${PWD} == "${WORKDIR}"/build-jit ]] ; then
|
||||
if is_jit || _tc_use_if_iuse libgdiagnostics ; then
|
||||
dodir "${LIBPATH#${EPREFIX}}"
|
||||
dodir "${LIBPATH#${EPREFIX}}"
|
||||
|
||||
if is_jit ; then
|
||||
mv "${ED}"/usr/lib/libgccjit* "${D}${LIBPATH}" || die
|
||||
fi
|
||||
|
||||
if _tc_use_if_iuse libgdiagnostics ; then
|
||||
mv "${ED}"/usr/lib/libgdiagnostics* "${D}${LIBPATH}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# For all the libs that are built for CTARGET, move them into the
|
||||
|
||||
Reference in New Issue
Block a user