diff mbox series

[meta-oe,3/4] protobuf: Fix build on riscv32

Message ID 20240529032948.150704-3-raj.khem@gmail.com
State New
Headers show
Series [meta-oe,1/4] ckermit: Define return type for main | expand

Commit Message

Khem Raj May 29, 2024, 3:29 a.m. UTC
Link with libatomic since rv32 does not have 64bit atomics
Fixes
| riscv32-yoe-linux-musl-ld.lld: error: undefined reference: __atomic_load_8

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-devtools/protobuf/protobuf_4.25.3.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_4.25.3.bb b/meta-oe/recipes-devtools/protobuf/protobuf_4.25.3.bb
index 3241345963..4f8515471f 100644
--- a/meta-oe/recipes-devtools/protobuf/protobuf_4.25.3.bb
+++ b/meta-oe/recipes-devtools/protobuf/protobuf_4.25.3.bb
@@ -116,3 +116,4 @@  LDFLAGS:append:arm = " -latomic"
 LDFLAGS:append:mips = " -latomic"
 LDFLAGS:append:powerpc = " -latomic"
 LDFLAGS:append:mipsel = " -latomic"
+LDFLAGS:append:riscv32 = " -latomic"