From 08c99894e29587add6729c183a9faeb53ca078a5 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 28 Jan 2023 01:27:55 -0800 Subject: libcxx: Build libc++abi into static libc++.a This helps statically linking c++ runtime into binaries which use exceptions functions e.g. std::out_of_range as used in rwmem package and using -static-libstdc++ compiler flags Signed-off-by: Khem Raj --- recipes-devtools/clang/libcxx_git.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb index 5ad4473..e68dd5f 100644 --- a/recipes-devtools/clang/libcxx_git.bb +++ b/recipes-devtools/clang/libcxx_git.bb @@ -60,6 +60,7 @@ EXTRA_OECMAKE += "\ -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON \ -DLLVM_ENABLE_RTTI=ON \ -DLIBUNWIND_ENABLE_CROSS_UNWINDING=ON \ + -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON \ -DLIBCXXABI_INCLUDE_TESTS=OFF \ -DLIBCXXABI_ENABLE_SHARED=ON \ -DLIBCXXABI_LIBCXX_INCLUDES=${S}/libcxx/include \ -- cgit v1.2.3-54-g00ecf