summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2025-03-21 22:09:34 -0700
committerKhem Raj <raj.khem@gmail.com>2025-03-22 09:31:25 -0700
commit5aa1d149d9bfbbf93beb92e985e882231c7dfc78 (patch)
tree373f44bd85129609ab6bc3afd67088c3c28c7d15
parent7b836e6ed26da83fba5439f60f08eb4d4a2779b7 (diff)
downloadmeta-openembedded-5aa1d149d9bfbbf93beb92e985e882231c7dfc78.tar.gz
protobuf: Link with libatomic on riscv32
rv32 does not have compiler builtins for 64bit atomics Fixes | riscv32-yoe-linux-ld.lld: error: undefined reference: __atomic_load_8 | >>> referenced by /mnt/b/yoe/master/build/tmp/work/riscv32-yoe-linux/protobuf/5.29.4/recipe-sysroot/usr/lib/libabsl_cordz_info.so.2501.0.0 (disallowed by --no-allow-shlib-undefined) Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/protobuf/protobuf_5.29.4.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_5.29.4.bb b/meta-oe/recipes-devtools/protobuf/protobuf_5.29.4.bb
index 777378369e..9d49e0d3e4 100644
--- a/meta-oe/recipes-devtools/protobuf/protobuf_5.29.4.bb
+++ b/meta-oe/recipes-devtools/protobuf/protobuf_5.29.4.bb
@@ -51,6 +51,8 @@ EXTRA_OECMAKE += "\
51TEST_SRC_DIR = "examples" 51TEST_SRC_DIR = "examples"
52LANG_SUPPORT = "cpp ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python', '', d)}" 52LANG_SUPPORT = "cpp ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python', '', d)}"
53 53
54LDFLAGS:append:riscv32 = " -latomic"
55
54do_compile_ptest() { 56do_compile_ptest() {
55 mkdir -p "${B}/${TEST_SRC_DIR}" 57 mkdir -p "${B}/${TEST_SRC_DIR}"
56 58