[08/42] sysklogd: Fix build with GCC 15

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

Commit Message

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

Patch

diff --git a/lfs/sysklogd b/lfs/sysklogd
index b6e5d4c2f..4e5557264 100644
--- a/lfs/sysklogd
+++ b/lfs/sysklogd
@@ -32,6 +32,9 @@  DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
+# Fix build with GCC 15
+CFLAGS += -std=gnu17
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -74,7 +77,7 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	# Compile fix
 	cd $(DIR_APP) && sed -i "s/union wait/int/" syslogd.c
 
-	cd $(DIR_APP) && make $(MAKETUNING)
+	cd $(DIR_APP) && make $(MAKETUNING) RPM_OPT_FLAGS="$(CFLAGS)"
 	cd $(DIR_APP) && make install
 	touch /var/log/{dhcpcd.log,messages}
 	chmod 664 /var/log/{dhcpcd.log,messages}