diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-11-30 11:22:24 -0800 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@oss.qualcomm.com> | 2025-12-17 13:57:13 +0530 |
| commit | 2e5f52deaa8ca99e6612449cba2f178285e004d7 (patch) | |
| tree | 5d295a7cf6683f8da1ca9143386b270c2070cf5c | |
| parent | 43c28a94a53019675da11a144dd9dd765ca9fb6d (diff) | |
| download | meta-openembedded-2e5f52deaa8ca99e6612449cba2f178285e004d7.tar.gz | |
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>
(cherry picked from commit e3257c3360a732914ae02a07a7c0fe8c845a492f)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
| -rw-r--r-- | meta-oe/recipes-support/fuse/fuse3_3.16.2.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/fuse/fuse3_3.16.2.bb b/meta-oe/recipes-support/fuse/fuse3_3.16.2.bb index 2747e6c8be..4fc94b4e52 100644 --- a/meta-oe/recipes-support/fuse/fuse3_3.16.2.bb +++ b/meta-oe/recipes-support/fuse/fuse3_3.16.2.bb | |||
| @@ -25,6 +25,9 @@ CVE_PRODUCT = "fuse_project:fuse" | |||
| 25 | 25 | ||
| 26 | inherit meson pkgconfig ptest | 26 | inherit meson pkgconfig ptest |
| 27 | 27 | ||
| 28 | # fix riscv32-yoe-linux-musl-ld.lld: error: undefined symbol: __atomic_fetch_add_8 | ||
| 29 | LDFLAGS:append:toolchain-clang:riscv32 = " -latomic" | ||
| 30 | |||
| 28 | SRC_URI += " \ | 31 | SRC_URI += " \ |
| 29 | file://run-ptest \ | 32 | file://run-ptest \ |
| 30 | file://fuse3.conf \ | 33 | file://fuse3.conf \ |
