From: Adrian Freihofer Date: Wed, 1 Oct 2025 20:58:38 +0000 (+0200) Subject: expect: fix native build with GCC 15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fstable%2Fscarthgap-nut;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git expect: fix native build with GCC 15 This does not work for native builds: CFLAGS += "-std=gnu17" The line from native.bbclass gets priority: CFLAGS = "${BUILD_CFLAGS}" From bitbake-getvar -r expect-native CFLAGS ... append ...poky/meta/recipes-devtools/expect/expect_5.45.4.bb:44 "-std=gnu17" set ...poky/meta/classes-recipe/native.bbclass:44 "${BUILD_CFLAGS}" ... Signed-off-by: Adrian Freihofer Signed-off-by: Steve Sakoman --- diff --git a/meta/recipes-devtools/expect/expect_5.45.4.bb b/meta/recipes-devtools/expect/expect_5.45.4.bb index a89b48ef1c..f1d30d8217 100644 --- a/meta/recipes-devtools/expect/expect_5.45.4.bb +++ b/meta/recipes-devtools/expect/expect_5.45.4.bb @@ -41,7 +41,7 @@ S = "${WORKDIR}/${BPN}${PV}" EXTRA_AUTORECONF += "--exclude=aclocal" -CFLAGS += "-std=gnu17" +CFLAGS:append = " -std=gnu17" do_install:append() { mv ${D}${libdir}/expect${PV}/libexpect*.so ${D}${libdir}/