mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 23:05:46 +00:00
74c75d83ca
makepkg.conf on Arch injects -fuse-ld=lld into RUSTFLAGS which overrides .cargo/config.toml target rustflags. PKGBUILD now explicitly patches RUSTFLAGS at env level so bfd is used regardless of system config. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
13 lines
676 B
TOML
13 lines
676 B
TOML
# 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"]
|