mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2026-06-11 02:37:26 -04: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:
@@ -76,10 +76,12 @@ TARGET_LDFLAGS+= \
|
|||||||
-static-libstdc++ \
|
-static-libstdc++ \
|
||||||
-Wl,--gc-sections
|
-Wl,--gc-sections
|
||||||
|
|
||||||
|
MAKE_VARS+= \
|
||||||
|
CPPFLAGS="$(TARGET_CPPFLAGS)"
|
||||||
|
|
||||||
define Build/Install
|
define Build/Install
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
|
||||||
install-gdb install-gdbserver
|
install-gdb install-gdbserver
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user