| Message ID | 20261114193733.1743149-8-khem.raj@oss.qualcomm.com |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-oe,01/13] frame: Fix build with lld without x11 | expand |
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"
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> --- 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(+)