build: use relative mold linker path (fix #504)

Linux package managers install mold to `/usr/bin/mold`
This commit is contained in:
w1nst0n 2023-01-15 00:08:00 +01:00
parent 0e7e99a7eb
commit 8bc3eee321
No known key found for this signature in database
GPG key ID: 34D27465928A0A1D

View file

@ -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"]