mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-11 16:59:59 +00:00
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:
@@ -20,6 +20,9 @@ EXTRA_OECMAKE += " \
|
|||||||
-DBUILD_SHARED_LIBS=ON \
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
${@bb.utils.contains('PTEST_ENABLED', '1', '-DRE2_BUILD_TESTING=ON', '-DRE2_BUILD_TESTING=OFF', d)} \
|
${@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 () {
|
do_install_ptest () {
|
||||||
cp -r ${B}/*_test ${D}${PTEST_PATH}
|
cp -r ${B}/*_test ${D}${PTEST_PATH}
|
||||||
|
|||||||
Reference in New Issue
Block a user