summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Marko2025-04-16 11:59:14 +0000
committerRobert Marko2025-04-25 08:55:03 +0000
commit1e51fd037d780725ca31cc92b39078468a383295 (patch)
tree727a9ca95cd0821e4eefcdc5b29e838c5ecccad2
parent5531dc7109017237d3ac6d9611a9231766c5c8fc (diff)
downloadopenwrt-1e51fd037d780725ca31cc92b39078468a383295.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>
-rw-r--r--tools/elfutils/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/elfutils/Makefile b/tools/elfutils/Makefile
index 2836cadc87..ae829cd340 100644
--- a/tools/elfutils/Makefile
+++ b/tools/elfutils/Makefile
@@ -69,7 +69,7 @@ ifeq ($(HOST_OS),Darwin)
HOST_CFLAGS += -I/opt/homebrew/include
endif
-HOST_CFLAGS += -Wno-error -fPIC
+HOST_CFLAGS += -Wno-error -fPIC -std=gnu17
HOST_CONFIGURE_ARGS += \
--without-libintl-prefix \