From: Hauke Mehrtens Date: Tue, 17 Feb 2026 00:19:25 +0000 (+0100) Subject: gdb: add CPPFLAGS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39e5f11631ddce63f46f8ddf338770fe0556990a;p=thirdparty%2Fopenwrt.git 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 --- diff --git a/package/devel/gdb/Makefile b/package/devel/gdb/Makefile index 6c45de0df92..f935d218aca 100644 --- a/package/devel/gdb/Makefile +++ b/package/devel/gdb/Makefile @@ -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