]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
mpage: Fix build with GCC 15
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 29 Apr 2025 15:27:57 +0000 (15:27 +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/mpage

index 8d228daf2e636b6762f200c4e0914f25bc1452a3..6bf2e31188fed44548bbf999c44b669b593e12dd 100644 (file)
--- a/lfs/mpage
+++ b/lfs/mpage
@@ -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
 ###############################################################################
@@ -71,7 +74,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/mpage25-config.patch
-       cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
-       cd $(DIR_APP) && make $(EXTRA_INSTALL) install
+       cd $(DIR_APP) && make $(MAKETUNING) RPM_OPT_FLAGS="$(CFLAGS)"
+       cd $(DIR_APP) && make install
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)