re2: Link with libatomic on riscv32

64-bit builtins for atomics are not provided by compiler

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-08-21 00:12:53 -07:00
parent 5761dacc36
commit 748b75e1b4
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -20,6 +20,9 @@ EXTRA_OECMAKE += " \
-DBUILD_SHARED_LIBS=ON \
${@bb.utils.contains('PTEST_ENABLED', '1', '-DRE2_BUILD_TESTING=ON', '-DRE2_BUILD_TESTING=OFF', d)} \
"
# | riscv32-yoe-linux-ld.lld: error: undefined reference: __atomic_load_8
# | >>> referenced by libtesting.so (disallowed by --no-allow-shlib-undefined)
LDFLAGS:append:riscv32 = " -latomic"
do_install_ptest () {
cp -r ${B}/*_test ${D}${PTEST_PATH}