Skip to content

Commit 78d517a

Browse files
committed
toolchain: gdb: set -std=gnu17
Fedora 42 updated to GCC15 which now defaults to GNU23 as the default instead of GNU17[1], and this breaks gdb compilation. This looks like a readline issue, that was fixed in GDB 16.2 but to not update toolchain components we can simply set the C standard back to GNU17. [1] https://gcc.gnu.org/gcc-15/porting_to.html#c23 Link: openwrt/openwrt#18581 Signed-off-by: Robert Marko <robimarko@gmail.com>
1 parent e0069e7 commit 78d517a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

toolchain/gdb/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ else
5656
HOST_CONFIGURE_ARGS+= --without-python
5757
endif
5858

59+
HOST_CFLAGS += -std=gnu17
60+
5961
define Host/Install
6062
mkdir -p $(TOOLCHAIN_DIR)/bin
6163
$(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb

0 commit comments

Comments
 (0)