cpio: Pin to use C17 std

Fixes build with GCC-15 which is defaulting to C23

For scarthgap also add it in BUILD_CFLAGS.

(From OE-Core rev: 874701c4fd96134e18f73eba4bd5c8b513ad251b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
Khem Raj 2025-08-22 09:40:36 +02:00 committed by Steve Sakoman
parent ebbbada5b8
commit 285b5070bb

View File

@ -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