summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Marko2025-04-16 09:42:54 +0000
committerRobert Marko2025-04-16 11:52:33 +0000
commit8c141e53d720b14a1d8595e0f756f1619df6e763 (patch)
tree76c3ee26053e48e8ca9cf0d93aa6198b786b18a1
parent71446d8052da52b2deb43349197ddcdf0373d416 (diff)
downloadopenwrt-8c141e53d720b14a1d8595e0f756f1619df6e763.tar.gz
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 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--tools/m4/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/m4/Makefile b/tools/m4/Makefile
index ee369f3cbb..c13155397d 100644
--- a/tools/m4/Makefile
+++ b/tools/m4/Makefile
@@ -18,6 +18,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