summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens2026-02-17 00:19:25 +0000
committerHauke Mehrtens2026-02-17 21:16:58 +0000
commit39e5f11631ddce63f46f8ddf338770fe0556990a (patch)
treec2ae9c6bdb9ec371fa2e329e67d70be05093f2ed
parent35939e4db93975c54ec002e6820f889906e6fcac (diff)
downloadopenwrt-39e5f11631ddce63f46f8ddf338770fe0556990a.tar.gz
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>
-rw-r--r--package/devel/gdb/Makefile4
1 files changed, 3 insertions, 1 deletions
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