Created attachment 750966 [details, diff] patch Mold has hardcoded path to /usr/lib (see attachment), that needs to be patched to the actual location mold's wrapper.so was installed into. Otherwise you can't run mold as a wrapper.
It seems more like we should just replace the lib with $(get_libdir) from the ebuild?
Bot didn't tag it but: From 710206365ed860b159d2620a28ba6e6b92145179 Mon Sep 17 00:00:00 2001 From: Sam James <sam@gentoo.org> Date: Tue, 14 Dec 2021 02:47:12 +0000 Subject: [PATCH] sys-devel/mold: fix wrapper libdir path Bug: https://github.com/rui314/mold/issues/127 Closes: https://bugs.gentoo.org/823653 Signed-off-by: Sam James <sam@gentoo.org> --- .../files/mold-0.9.6-fix-libdir-wrapper.patch | 26 +++++++++++++++++++ ...mold-0.9.6.ebuild => mold-0.9.6-r1.ebuild} | 7 +++++ 2 files changed, 33 insertions(+) create mode 100644 sys-devel/mold/files/mold-0.9.6-fix-libdir-wrapper.patch rename sys-devel/mold/{mold-0.9.6.ebuild => mold-0.9.6-r1.ebuild} (87%)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=716e8a495d874d8b5dc259d2b218e28aa7a2595a commit 716e8a495d874d8b5dc259d2b218e28aa7a2595a Author: Sam James <sam@gentoo.org> AuthorDate: 2021-12-14 10:44:40 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-12-14 11:14:01 +0000 sys-devel/mold: really fix wrapper Bug: https://bugs.gentoo.org/823653 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/mold/{mold-0.9.6-r1.ebuild => mold-0.9.6-r2.ebuild} | 1 + 1 file changed, 1 insertion(+)