summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens2025-06-07 23:55:18 +0000
committerHauke Mehrtens2025-06-08 19:37:01 +0000
commitd903a23de46d061c5849e32f6c2837d11d617534 (patch)
tree36fb696e6c59d662c26ac2c5e70ecaa3ea474538
parentbc48bf701307b3887b16b8c45d7805a33932605c (diff)
downloadopenwrt-d903a23de46d061c5849e32f6c2837d11d617534.tar.gz
grub2: set -std=gnu17
Arch Linux updated to GCC15 which now defaults to GNU23 as the default instead of GNU17[1], and this breaks grub compilation. This is fixed in more recent grub2 versions. [1] https://gcc.gnu.org/gcc-15/porting_to.html#c23 Link: https://github.com/openwrt/openwrt/pull/19065 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--package/boot/grub2/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/boot/grub2/Makefile b/package/boot/grub2/Makefile
index 865feee9ad..d7923d7f02 100644
--- a/package/boot/grub2/Makefile
+++ b/package/boot/grub2/Makefile
@@ -73,6 +73,8 @@ endef
HOST_BUILD_PREFIX := $(STAGING_DIR_HOST)
+HOST_CFLAGS +=-std=gnu17
+
CONFIGURE_VARS += \
grub_build_mkfont_excuse="don't want fonts"