commit:     cc039c0c2365fd938bdd755f1f3afa1c7d49643c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 13 02:27:39 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Nov 13 02:27:40 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc039c0c

sys-devel/mold: use dosym -r, sync live

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/mold/mold-2.3.2-r1.ebuild | 2 +-
 sys-devel/mold/mold-9999.ebuild     | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys-devel/mold/mold-2.3.2-r1.ebuild 
b/sys-devel/mold/mold-2.3.2-r1.ebuild
index 26a184843d8c..1ff59907edb2 100644
--- a/sys-devel/mold/mold-2.3.2-r1.ebuild
+++ b/sys-devel/mold/mold-2.3.2-r1.ebuild
@@ -92,5 +92,5 @@ src_install() {
 
        dosym ${PN} /usr/bin/ld.${PN}
        dosym ${PN} /usr/bin/ld64.${PN}
-       dosym ../../../usr/bin/${PN} /usr/libexec/${PN}/ld
+       dosym -r /usr/bin/${PN} /usr/libexec/${PN}/ld
 }

diff --git a/sys-devel/mold/mold-9999.ebuild b/sys-devel/mold/mold-9999.ebuild
index f16aabe0758e..f602c3b96e96 100644
--- a/sys-devel/mold/mold-9999.ebuild
+++ b/sys-devel/mold/mold-9999.ebuild
@@ -72,6 +72,7 @@ src_configure() {
                -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON
                -DMOLD_ENABLE_QEMU_TESTS=OFF
                -DMOLD_LTO=OFF # Should be up to the user to decide this with 
CXXFLAGS.
+               -DMOLD_USE_MIMALLOC=$(usex !kernel_Darwin)
                -DMOLD_USE_SYSTEM_MIMALLOC=ON
                -DMOLD_USE_SYSTEM_TBB=ON
        )
@@ -90,5 +91,5 @@ src_install() {
 
        dosym ${PN} /usr/bin/ld.${PN}
        dosym ${PN} /usr/bin/ld64.${PN}
-       dosym ../../../usr/bin/${PN} /usr/libexec/${PN}/ld
+       dosym -r /usr/bin/${PN} /usr/libexec/${PN}/ld
 }

Reply via email to