[openwrt/openwrt] wireless-tools: add CPPFLAGS

LEDE Commits lede-commits at lists.infradead.org
Tue Feb 17 13:32:15 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/9bb7755066fbcc11cec027e2c10bfc12cc3cfe4e

commit 9bb7755066fbcc11cec027e2c10bfc12cc3cfe4e
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Tue Feb 17 00:55:11 2026 +0100

    wireless-tools: add CPPFLAGS
    
    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 at hauke-m.de>
    (cherry picked from commit d69b2830681fdaeb2b19b28231e9171684ead6d1)
---
 package/network/utils/wireless-tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/utils/wireless-tools/Makefile b/package/network/utils/wireless-tools/Makefile
index 9a19970af8..95d1f5b2c4 100644
--- a/package/network/utils/wireless-tools/Makefile
+++ b/package/network/utils/wireless-tools/Makefile
@@ -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" \




More information about the lede-commits mailing list