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 += "\ TEST_SRC_DIR = "examples" LANG_SUPPORT = "cpp ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python', '', d)}" +LDFLAGS:append:riscv32 = " -latomic" + do_compile_ptest() { mkdir -p "${B}/${TEST_SRC_DIR}"