From f9bc67cb7735e8272a134944fd2a16bf865848f6 Mon Sep 17 00:00:00 2001 From: Psychotoxical Date: Thu, 2 Apr 2026 11:54:50 +0200 Subject: [PATCH] =?UTF-8?q?fix(aur):=20append=20-fuse-ld=3Dbfd=20to=20RUST?= =?UTF-8?q?FLAGS=20=E2=80=94=20substitution=20was=20no-op=20on=20CachyOS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/aur/PKGBUILD | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/aur/PKGBUILD b/packages/aur/PKGBUILD index 24c13eb5..2cd00c03 100644 --- a/packages/aur/PKGBUILD +++ b/packages/aur/PKGBUILD @@ -28,10 +28,11 @@ build() { export npm_config_cache="$srcdir/npm-cache" # ring (used by tauri-plugin-updater → rustls) ships C/asm objects whose - # symbols (ring_core_*) lld cannot resolve. Arch's makepkg.conf bakes - # -fuse-ld=lld into RUSTFLAGS which overrides .cargo/config.toml. - # Swap lld → bfd (binutils, part of base-devel) so the link succeeds. - export RUSTFLAGS="${RUSTFLAGS//-fuse-ld=lld/-fuse-ld=bfd}" + # symbols (ring_core_*) lld cannot resolve. On Arch/CachyOS, -fuse-ld=lld + # is hardcoded into rustc itself (not just makepkg.conf RUSTFLAGS), so a + # string substitution is a no-op. Appending -C link-arg=-fuse-ld=bfd works + # because the last -fuse-ld=* flag passed to cc wins. + export RUSTFLAGS="${RUSTFLAGS} -C link-arg=-fuse-ld=bfd" npm install npm run tauri:build -- --no-bundle