mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-10 08:44:39 +01:00
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>
This commit is contained in:
parent
bd9b964b24
commit
2c36ed03e5
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue