[openwrt/openwrt] gdb: add CPPFLAGS

LEDE Commits lede-commits at lists.infradead.org
Tue Feb 17 13:27:45 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/39e5f11631ddce63f46f8ddf338770fe0556990a

commit 39e5f11631ddce63f46f8ddf338770fe0556990a
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Tue Feb 17 01:19:25 2026 +0100

    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 at hauke-m.de>
---
 package/devel/gdb/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/devel/gdb/Makefile b/package/devel/gdb/Makefile
index 6c45de0df9..f935d218ac 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
 




More information about the lede-commits mailing list