fuse3: Fix build with clang on riscv32

Clang needs 64-bit atomics on rv32 here and builtins does
not have them so help it by linking with libatomic

Fixes
 riscv32-yoe-linux-musl-ld.lld: error: undefined symbol: __atomic_fetch_add_8

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-11-30 11:22:24 -08:00
parent c8d0737c7f
commit e3257c3360
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -25,6 +25,9 @@ CVE_PRODUCT = "fuse_project:fuse"
inherit meson pkgconfig ptest
# fix riscv32-yoe-linux-musl-ld.lld: error: undefined symbol: __atomic_fetch_add_8
LDFLAGS:append:toolchain-clang:riscv32 = " -latomic"
SRC_URI += " \
file://run-ptest \
file://fuse3.conf \