summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2025-08-21 00:12:08 -0700
committerKhem Raj <raj.khem@gmail.com>2025-08-21 00:13:58 -0700
commit5761dacc36898f4ca1d29efdfbf0f896101e2859 (patch)
tree53d2033b863fc7c62d234cfaedf3999680906a70
parent6afcc7939e74023b06fc8655f4120647e4907f8c (diff)
downloadmeta-openembedded-5761dacc36898f4ca1d29efdfbf0f896101e2859.tar.gz
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>
-rw-r--r--meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20250512.1.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20250512.1.bb b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20250512.1.bb
index 4afbba963a..d4e616a733 100644
--- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20250512.1.bb
+++ b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20250512.1.bb
@@ -21,6 +21,9 @@ EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \
21 -DBUILD_TESTING=OFF \ 21 -DBUILD_TESTING=OFF \
22 -DABSL_ENABLE_INSTALL=ON \ 22 -DABSL_ENABLE_INSTALL=ON \
23 " 23 "
24# riscv32-yoe-linux-ld.lld: error: undefined reference: __atomic_store_8
25# >>> referenced by <recipe-sysroot>/usr/lib/libabsl_flags_internal.so.2505.0.0 (disallowed by --no-allow-shlib-undefined)
26LDFLAGS:append:riscv32 = " -latomic"
24 27
25SYSROOT_DIRS:append:class-nativesdk:mingw32 = " ${bindir}" 28SYSROOT_DIRS:append:class-nativesdk:mingw32 = " ${bindir}"
26 29