cpio: Pin to use C17 std
PATCH 1/1 cpio: Pin to use C17 std
From: Khem Raj <[email protected]>
Fixes build with GCC-15 which is defaulting to C23
For scarthgap also add it in BUILD_CFLAGS.
Signed-off-by Khem Raj <[email protected]>
Signed-off-by Richard Purdie <[email protected]>
Signed-off-by Martin Jansa <[email protected]>
--- meta/recipes-extended/cpio/cpio_2.15.bb | 3 +++ 1 file changed, 3 insertions(+)
meta/recipes-extended/cpio/cpio_2.15.bb +3 -0
@@ -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