mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
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>
This commit is contained in:
@@ -51,6 +51,8 @@ EXTRA_OECMAKE += "\
|
|||||||
TEST_SRC_DIR = "examples"
|
TEST_SRC_DIR = "examples"
|
||||||
LANG_SUPPORT = "cpp ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python', '', d)}"
|
LANG_SUPPORT = "cpp ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python', '', d)}"
|
||||||
|
|
||||||
|
LDFLAGS:append:riscv32 = " -latomic"
|
||||||
|
|
||||||
do_compile_ptest() {
|
do_compile_ptest() {
|
||||||
mkdir -p "${B}/${TEST_SRC_DIR}"
|
mkdir -p "${B}/${TEST_SRC_DIR}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user