Fix rust-lld path in the arm64 recipe: rustc 1.85 has no rustlib-dir print

This commit is contained in:
Bastian Mäuser committed 2026-11-06 12:27:06 +01:00
1 parent e4623f33c3
commit 923d0fc485
1 file changed
+1 -1
+1 -1
View File
@@ -152,7 +152,7 @@ an isolated rustup under `/tmp` so the distro cargo is not touched:
export RUSTUP_HOME=/tmp/rustup CARGO_HOME=/tmp/rustup-cargo PATH=/tmp/rustup-cargo/bin:$PATH
curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.85.0 --profile minimal --no-modify-path
rustup target add aarch64-unknown-linux-musl
mkdir -p /tmp/lld-bin && ln -sf "$(rustc --print rustlib-dir)"/x86_64-unknown-linux-gnu/bin/rust-lld /tmp/lld-bin/ld.lld
mkdir -p /tmp/lld-bin && ln -sf "$(rustc --print sysroot)"/lib/rustlib/x86_64-unknown-linux-gnu/bin/rust-lld /tmp/lld-bin/ld.lld
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=/tmp/lld-bin/ld.lld
~/.cargo/bin/cargo-deb --target aarch64-unknown-linux-musl --no-strip
# -> target/aarch64-unknown-linux-musl/debian/btle-proximity_*_arm64.deb