mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-20 02:21:19 +01:00
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>
This commit is contained in:
parent
35939e4db9
commit
39e5f11631
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue