summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Marko2025-04-16 11:59:14 +0000
committerHauke Mehrtens2025-06-08 19:28:26 +0000
commit6fc7344c93bc9d705da5cc6d995275f2fa8b3395 (patch)
tree160ba3df683d1aa736fca391c626180615a1504b
parentc678cfaa5b00dfca6dbf273892b3184e92d176c3 (diff)
downloadopenwrt-6fc7344c93bc9d705da5cc6d995275f2fa8b3395.tar.gz
tools: elfutils: 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. This looks like a gnulib issue, so until that is updated/fixed lets simply set C language version back to GNU17. [1] https://gcc.gnu.org/gcc-15/porting_to.html#c23 Link: https://github.com/openwrt/openwrt/pull/18506 (cherry picked from commit f165dd2f78f7aaafa85f59f5c35264dd03e3a6ce) Link: https://github.com/openwrt/openwrt/pull/18581 Signed-off-by: Robert Marko <robimarko@gmail.com> [Rework patch to make it apply] (cherry picked from commit 1e51fd037d780725ca31cc92b39078468a383295) Link: https://github.com/openwrt/openwrt/pull/19065 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--tools/elfutils/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/elfutils/Makefile b/tools/elfutils/Makefile
index f9c6272719..105be07720 100644
--- a/tools/elfutils/Makefile
+++ b/tools/elfutils/Makefile
@@ -19,6 +19,8 @@ PKG_INSTALL:=1
include $(INCLUDE_DIR)/host-build.mk
+HOST_CFLAGS +=-std=gnu17
+
HOST_CONFIGURE_ARGS += \
--disable-debuginfod \
--disable-libdebuginfod \