From 8bc3eee321370e4597f13e52a6307f1cd82cc5eb Mon Sep 17 00:00:00 2001 From: w1nst0n Date: Sun, 15 Jan 2023 00:08:00 +0100 Subject: [PATCH] build: use relative mold linker path (fix #504) Linux package managers install mold to `/usr/bin/mold` --- .cargo/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cargo/config b/.cargo/config index d8065a0..115192e 100644 --- a/.cargo/config +++ b/.cargo/config @@ -3,4 +3,4 @@ rustflags = ["-C", "target-feature=+crt-static"] [target.x86_64-unknown-linux-gnu] linker = "clang" -rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/mold"] +rustflags = ["-C", "link-arg=-fuse-ld=mold"]