Gold linker is deprecated

⚓ Rust    📅 2026-04-24    👤 surdeus    👁️ 1      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Gold linker is deprecated

I think this is pretty new. When I run cargo build --release --target x86_64-unknown-linux-musl the binary gets built but I get

 WARN rustc_codegen_ssa::back::link Linker does not support -static-pie command line option. Retrying with -static instead.
warning: the gold linker is deprecated and has known bugs with Rust
  |
  = help: consider using LLD or ld from GNU binutils instead

What do I have to do here?

4 posts - 2 participants

Read full topic

🏷️ Rust_feed