mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-05-19 01:37: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:
parent
7b836e6ed2
commit
5aa1d149d9
@ -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}"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user