]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
grub2: set -std=gnu17 19065/head
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 7 Jun 2025 23:55:18 +0000 (01:55 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 8 Jun 2025 19:37:01 +0000 (21:37 +0200)
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>
package/boot/grub2/Makefile

index 865feee9ad1bfbf2d039a285a4afce44ff1dd429..d7923d7f024a8b34fd923712c54588654f3ea6b6 100644 (file)
@@ -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"