From 874701c4fd96134e18f73eba4bd5c8b513ad251b Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 22 Aug 2025 09:40:36 +0200 Subject: [PATCH] cpio: Pin to use C17 std Fixes build with GCC-15 which is defaulting to C23 For scarthgap also add it in BUILD_CFLAGS. Signed-off-by: Khem Raj Signed-off-by: Richard Purdie Signed-off-by: Martin Jansa Signed-off-by: Steve Sakoman --- meta/recipes-extended/cpio/cpio_2.15.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-extended/cpio/cpio_2.15.bb b/meta/recipes-extended/cpio/cpio_2.15.bb index 95f82cdf3ab..a5c9b76da20 100644 --- a/meta/recipes-extended/cpio/cpio_2.15.bb +++ b/meta/recipes-extended/cpio/cpio_2.15.bb @@ -20,6 +20,9 @@ CVE_STATUS[CVE-2023-7216] = "disputed: intended behaviour, see https://lists.gnu EXTRA_OECONF += "DEFAULT_RMT_DIR=${sbindir}" +CFLAGS += "-std=gnu17" +BUILD_CFLAGS += "-std=gnu17" + do_install () { autotools_do_install if [ "${base_bindir}" != "${bindir}" ]; then -- 2.47.3