# Arch Linux's rust package bakes -fuse-ld=lld into the default rustflags. # ring (pulled in by tauri-plugin-updater) ships C/asm objects that lld cannot # resolve (ring_core_* symbols). Fix: force cc as linker driver and append # -fuse-ld=bfd so it overrides the hardcoded -fuse-ld=lld (last flag wins). # bfd is always available via binutils (part of base-devel on Arch). # # NOTE: When building via makepkg (AUR), RUSTFLAGS from /etc/makepkg.conf # overrides target-specific rustflags here. The PKGBUILD's build() applies # the same fix by patching the RUSTFLAGS env var directly. [target.x86_64-unknown-linux-gnu] linker = "cc" rustflags = ["-C", "link-arg=-fuse-ld=bfd"]