gdb: add CPPFLAGS

Forward the OpenWrt CPPFLAGS to the compile process. This fixes fortify
sources support.

Link: https://github.com/openwrt/openwrt/pull/22056
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Hauke Mehrtens 2026-02-17 01:19:25 +01:00
parent 35939e4db9
commit 39e5f11631

View file

@ -76,10 +76,12 @@ TARGET_LDFLAGS+= \
-static-libstdc++ \
-Wl,--gc-sections
MAKE_VARS+= \
CPPFLAGS="$(TARGET_CPPFLAGS)"
define Build/Install
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
CPPFLAGS="$(TARGET_CPPFLAGS)" \
install-gdb install-gdbserver
endef