From: Khem Raj Date: Fri, 22 Aug 2025 07:40:36 +0000 (+0200) Subject: cpio: Pin to use C17 std X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=874701c4fd96134e18f73eba4bd5c8b513ad251b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- 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