]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
expect: fix native build with GCC 15 stable/scarthgap-nut
authorAdrian Freihofer <adrian.freihofer@siemens.com>
Wed, 1 Oct 2025 20:58:38 +0000 (22:58 +0200)
committerSteve Sakoman <steve@sakoman.com>
Thu, 2 Oct 2025 15:40:43 +0000 (08:40 -0700)
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 <adrian.freihofer@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/expect/expect_5.45.4.bb

index a89b48ef1c3d8dc70ad3f84607321495d9e366d3..f1d30d82172533d2b8f2558ef979b10904d887c4 100644 (file)
@@ -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}/