spotifyd, cross compiling for arm64

Viewed 806

I am trying to compile spotifyd for my aarch64 architecture using cargo build --release --target aarch64-unknown-linux-gnu, all dependencies are installed and so far, compilation works.

However, the final step (Compiling spotifyd v0.1.1 (file:///home/ubuntu/spotifyd)) fails with:

 = note: aarch64-linux-gnu-ld.gold: -Wl,--as-needed: unknown option
          aarch64-linux-gnu-ld.gold: use the --help option for usage information

My configuration for cargo is setup to use the aarch64 linker:

/root/.cargo/config

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-ld.gold"

It seems that -Wl is not available within aarch64-linux-gnu-ld.gold, are there any alternatives to aarch64-linux-gnu-ld.gold that I could use or is it possible to remove the -Wl flag from cargo?

Thanks for your advise.

1 Answers
Related