]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
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)
commit2696c50af9946f425ccaf7d0e7e0eb3fd87c36bb
tree6e19b2d40635d6151b89c5b30a1fb188a24accf6
parenta1ac756f2f55c4f27a95cb8b1e63ee2db06dd327
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 <adrian.freihofer@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/expect/expect_5.45.4.bb