]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
sysklogd: Fix build with GCC 15
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 Apr 2025 17:20:44 +0000 (17:20 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 May 2025 10:16:27 +0000 (10:16 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/sysklogd

index b6e5d4c2fb7ed8fb1780f1871a192c9d359c76be..4e5557264979d613f6ca6386d1f3d8ea6e5ed1d2 100644 (file)
@@ -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}