]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wireless-tools: add CPPFLAGS
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 16 Feb 2026 23:55:11 +0000 (00:55 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 17 Feb 2026 21:25:09 +0000 (22:25 +0100)
Add the OpenWrt CPPFLAGS to the CFLAGS. wireless-tools does not
support CPPFLAGS. This fixes fortify sources support.

Link: https://github.com/openwrt/openwrt/pull/22056
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/network/utils/wireless-tools/Makefile

index 9a19970af8dc660755ab56b4a98f95ffbf21dc45..95d1f5b2c4f93134710eb0ad2b479b52561e41c3 100644 (file)
@@ -59,7 +59,7 @@ define Build/Compile
        mkdir -p $(PKG_INSTALL_DIR)
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
-               CFLAGS="$(TARGET_CFLAGS) -I." \
+               CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -I." \
                LDFLAGS="$(TARGET_LDFLAGS)" \
                BUILD_WE_ESSENTIAL=y \
                LIBS="-lm -Wl,--gc-sections" \