Skip to contentSkip to conversation

cpio: Pin to use C17 std

PATCH New [email protected] 1 participant 1 message Aug 22, 2025

lore
Share & tools
lore
#0 lore raw

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.

---
 meta/recipes-extended/cpio/cpio_2.15.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-extended/cpio/cpio_2.15.bb +3 -0
index 95f82cdf3a..a5c9b76da2 100644
@@ -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