diff mbox series

[wrynose,meta-oe,07/45] wvstreams, wvdial: Build with gcc

Message ID 20261201064402.3934788-7-anuj.mittal@oss.qualcomm.com
State Under Review
Delegated to: Anuj Mittal
Headers show
Series [wrynose,meta-networking,01/45] proftpd: upgrade 1.3.9d -> 1.3.9e | expand

Commit Message

Anuj Mittal Dec. 1, 2026, 6:43 a.m. UTC
From: Khem Raj <khem.raj@oss.qualcomm.com>

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 <khem.raj@oss.qualcomm.com>
(cherry picked from commit de2ffb29acd17d97433ff493e81abf390fb01599)
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
---
 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 mbox series

Patch

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 4bb4c11d6f..43a6ac0a18 100644
--- a/meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb
+++ b/meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb
@@ -35,6 +35,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"