[openwrt/openwrt] tools: m4: set -std=gnu17

LEDE Commits lede-commits at lists.infradead.org
Sun Jun 8 12:38:27 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/b0d7794a95cd41210cb2a9a9191016bc8d138deb

commit b0d7794a95cd41210cb2a9a9191016bc8d138deb
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Wed Apr 16 11:42:54 2025 +0200

    tools: m4: set -std=gnu17
    
    Fedora 42 updated to GCC15 which now defaults to GNU23 as the default
    instead of GNU17[1], and this breaks m4 compilation.
    
    Its been reported upstream [2], so until its fixed lets simply set C
    language version back to GNU17.
    
    [1] https://gcc.gnu.org/gcc-15/porting_to.html#c23
    [2] https://savannah.gnu.org/support/?111150
    
    Link: https://github.com/openwrt/openwrt/pull/18505
    (cherry picked from commit 8c141e53d720b14a1d8595e0f756f1619df6e763)
    Link: https://github.com/openwrt/openwrt/pull/18581
    Signed-off-by: Robert Marko <robimarko at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/19065
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 tools/m4/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/m4/Makefile b/tools/m4/Makefile
index d621000daf..82210c9e84 100644
--- a/tools/m4/Makefile
+++ b/tools/m4/Makefile
@@ -19,6 +19,7 @@ HOST_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/host-build.mk
 
+HOST_CFLAGS += -std=gnu17
 HOST_CONFIGURE_VARS += gl_cv_func_strstr_linear=no
 
 define Host/Uninstall




More information about the lede-commits mailing list