summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYogesh Tyagi <yogesh.tyagi@intel.com>2026-02-03 03:20:55 +0800
committerKhem Raj <raj.khem@gmail.com>2026-02-04 20:53:30 -0800
commit0feab3928335c992808be45caa4b0c934606eef0 (patch)
treeee33a45e91401195d54c832745b1d4a34e3ea8ab
parent7c54c935cb6c3b5d96554d9fd3de72e5240f72aa (diff)
downloadmeta-openembedded-0feab3928335c992808be45caa4b0c934606eef0.tar.gz
abseil-cpp: Set CMAKE_CXX_STANDARD to 17
The compiler defaults to C++ < 17 which causes build failures. Abseil requires C++17 or higher, so explicitly set CMAKE_CXX_STANDARD=17 to ensure the build uses the correct C++ standard. Error: CMake Error at CMake/AbseilDll.cmake:745 (message): The compiler defaults to or is configured for C++ < 17. C++ >= 17 is required and Abseil and all libraries that use Abseil must use the same C++ language standard Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20260107.0.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20260107.0.bb b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20260107.0.bb
index e2bce0be11..d4475ee73a 100644
--- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20260107.0.bb
+++ b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20260107.0.bb
@@ -21,6 +21,7 @@ inherit cmake
21EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \ 21EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \
22 -DBUILD_TESTING=OFF \ 22 -DBUILD_TESTING=OFF \
23 -DABSL_ENABLE_INSTALL=ON \ 23 -DABSL_ENABLE_INSTALL=ON \
24 -DCMAKE_CXX_STANDARD=17 \
24 " 25 "
25# riscv32-yoe-linux-ld.lld: error: undefined reference: __atomic_store_8 26# riscv32-yoe-linux-ld.lld: error: undefined reference: __atomic_store_8
26# >>> referenced by <recipe-sysroot>/usr/lib/libabsl_flags_internal.so.2505.0.0 (disallowed by --no-allow-shlib-undefined) 27# >>> referenced by <recipe-sysroot>/usr/lib/libabsl_flags_internal.so.2505.0.0 (disallowed by --no-allow-shlib-undefined)