From: Hauke Mehrtens Date: Sat, 7 Jun 2025 23:55:18 +0000 (+0200) Subject: grub2: set -std=gnu17 X-Git-Tag: v23.05.6~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F19065%2Fhead;p=thirdparty%2Fopenwrt.git 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 --- diff --git a/package/boot/grub2/Makefile b/package/boot/grub2/Makefile index 865feee9ad1..d7923d7f024 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"