diff options
| author | Hauke Mehrtens | 2026-02-17 00:19:25 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2026-02-17 21:30:19 +0000 |
| commit | 361be894b3bf104e782f53105c1d48bfc972a21b (patch) | |
| tree | 9c810a68a2aff768481a8783e777c1768ec678b2 | |
| parent | 370af1aa65c670527227ef59ceb1193bc9a98b2c (diff) | |
| download | openwrt-361be894b3bf104e782f53105c1d48bfc972a21b.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>
(cherry picked from commit 39e5f11631ddce63f46f8ddf338770fe0556990a)
| -rw-r--r-- | package/devel/gdb/Makefile | 4 |
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 |