diff options
| author | Hauke Mehrtens | 2025-05-27 20:13:03 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2025-06-08 19:36:54 +0000 |
| commit | 2c36ed03e5fd358ae4ad0c5935bbbc2bc20cfad6 (patch) | |
| tree | 63c5c7c70d7e62ebbed38d3286363edf74309ba6 | |
| parent | bd9b964b248cc582b134cd3ca8c160fa422e7ac5 (diff) | |
| download | openwrt-2c36ed03e5fd358ae4ad0c5935bbbc2bc20cfad6.tar.gz | |
toolchain: gdb: set -std=gnu17
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>
| -rw-r--r-- | toolchain/gdb/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toolchain/gdb/Makefile b/toolchain/gdb/Makefile index 474a18e95f..05f2e97331 100644 --- a/toolchain/gdb/Makefile +++ b/toolchain/gdb/Makefile @@ -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 |