projects
/
openwrt
/
staging
/
xback.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35939e4
)
gdb: add CPPFLAGS
author
Hauke Mehrtens
<hauke@hauke-m.de>
Tue, 17 Feb 2026 00:19:25 +0000
(
01:19
+0100)
committer
Hauke Mehrtens
<hauke@hauke-m.de>
Tue, 17 Feb 2026 21:16:58 +0000
(22:16 +0100)
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>
package/devel/gdb/Makefile
patch
|
blob
|
history
diff --git
a/package/devel/gdb/Makefile
b/package/devel/gdb/Makefile
index 6c45de0df922960051bc64e1d2426b758fb3e31d..f935d218acaa2ffac0bbcebae83aeda7d863bb89 100644
(file)
--- 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