diff mbox series

apt: Always Use libstdc++ with clang

Message ID 20250719013236.275126-1-raj.khem@gmail.com
State New
Headers show
Series apt: Always Use libstdc++ with clang | expand

Commit Message

Khem Raj July 19, 2025, 1:32 a.m. UTC
Clang can be configured to link either libc++ or libstdc++ by default.
apt does not build with libc++, this is reported upstream [1] as well
untill this is root caused and either fixed in apt or libc++, use
libstdc++

[1] https://github.com/llvm/llvm-project/issues/63743

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-devtools/apt/apt_2.6.1.bb | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/apt/apt_2.6.1.bb b/meta/recipes-devtools/apt/apt_2.6.1.bb
index 50ac2ea812c..45761367e4b 100644
--- a/meta/recipes-devtools/apt/apt_2.6.1.bb
+++ b/meta/recipes-devtools/apt/apt_2.6.1.bb
@@ -56,6 +56,9 @@  EXTRA_OECMAKE:append = " -DCURRENT_VENDOR=debian -DWITH_DOC=False \
     -DWITH_TESTS=False \
 "
 
+# See https://github.com/llvm/llvm-project/issues/63743
+CXXFLAGS:append:toolchain-clang = " -stdlib=libstdc++"
+
 do_configure:prepend() {
 	echo "set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH )" >>  ${WORKDIR}/toolchain.cmake
 }