[13/42] cpio: Fix build with GCC 15

Message ID 20250502101632.1082010-13-michael.tremer@ipfire.org
State New
Headers
Series [01/42] gcc: Update to 15 |

Commit Message

Michael Tremer May 2, 2025, 10:16 a.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 lfs/cpio | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/lfs/cpio b/lfs/cpio
index b8b6e12fe..f0f2c3f12 100644
--- a/lfs/cpio
+++ b/lfs/cpio
@@ -32,7 +32,8 @@  DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
-CFLAGS    += -fcommon
+# Fix build with GCC 15
+CFLAGS    += -std=gnu17 -fcommon
 
 ###############################################################################
 # Top-level Rules