mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-21 05:57:05 +00:00
abseil-cpp: 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:
@@ -21,6 +21,9 @@ EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \
|
|||||||
-DBUILD_TESTING=OFF \
|
-DBUILD_TESTING=OFF \
|
||||||
-DABSL_ENABLE_INSTALL=ON \
|
-DABSL_ENABLE_INSTALL=ON \
|
||||||
"
|
"
|
||||||
|
# riscv32-yoe-linux-ld.lld: error: undefined reference: __atomic_store_8
|
||||||
|
# >>> referenced by <recipe-sysroot>/usr/lib/libabsl_flags_internal.so.2505.0.0 (disallowed by --no-allow-shlib-undefined)
|
||||||
|
LDFLAGS:append:riscv32 = " -latomic"
|
||||||
|
|
||||||
SYSROOT_DIRS:append:class-nativesdk:mingw32 = " ${bindir}"
|
SYSROOT_DIRS:append:class-nativesdk:mingw32 = " ${bindir}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user