]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
toolchain: gdb: set -std=gnu17
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 27 May 2025 20:13:03 +0000 (22:13 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 8 Jun 2025 19:36:54 +0000 (21:36 +0200)
Arch Linux updated to GCC15 which now defaults to GNU23 as the default
instead of GNU17[1], and this breaks gdb compilation.

This is fixed in more recent gdb 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>
toolchain/gdb/Makefile

index 474a18e95ff2649f545328eb6ae7436a93ece43c..05f2e97331d95b7cda3009699ecb2cd3588f773b 100644 (file)
@@ -53,6 +53,8 @@ else
   HOST_CONFIGURE_ARGS+= --without-python
 endif
 
+HOST_CFLAGS += -std=gnu17
+
 define Host/Install
        mkdir -p $(TOOLCHAIN_DIR)/bin
        $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb