]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
gdb: add CPPFLAGS
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 17 Feb 2026 00:19:25 +0000 (01:19 +0100)
committerHauke 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

index 6c45de0df922960051bc64e1d2426b758fb3e31d..f935d218acaa2ffac0bbcebae83aeda7d863bb89 100644 (file)
@@ -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