From 536eb79e074d5619effe3aa65fcd02d08b62cc44 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 9 Nov 2026 08:42:16 -0800 Subject: [PATCH] wvstreams, wvdial: Build with gcc wvstreams relies on C++ that clang rejects, e.g. access to private and incomplete nested classes, and so do its headers that wvdial includes. Upstream is no longer maintained, so build both with gcc when clang is the default toolchain. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- meta-oe/recipes-connectivity/wvdial/wvdial_1.61.bb | 3 +++ meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/meta-oe/recipes-connectivity/wvdial/wvdial_1.61.bb b/meta-oe/recipes-connectivity/wvdial/wvdial_1.61.bb index 165872e2b1..5d07ec8c3b 100644 --- a/meta-oe/recipes-connectivity/wvdial/wvdial_1.61.bb +++ b/meta-oe/recipes-connectivity/wvdial/wvdial_1.61.bb @@ -6,6 +6,9 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=55ca817ccb7d5b5b66355690e9abc605" inherit pkgconfig +# wvstreams headers rely on C++ that clang rejects +TOOLCHAIN = "gcc" + DEPENDS = "wvstreams" RDEPENDS:${PN} = "ppp" diff --git a/meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb b/meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb index 27e6e33224..a4c81142af 100644 --- a/meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb +++ b/meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb @@ -36,6 +36,9 @@ COMPATIBLE_HOST:libc-musl = "null" inherit autotools-brokensep pkgconfig +# Relies on C++ that clang rejects +TOOLCHAIN = "gcc" + TARGET_CFLAGS:append = " -fno-tree-dce -fno-optimize-sibling-calls" LDFLAGS:append = " -Wl,-rpath-link,${CROSS_DIR}/${TARGET_SYS}/lib"