summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens2026-02-16 23:55:11 +0000
committerHauke Mehrtens2026-02-17 21:30:28 +0000
commit9bb7755066fbcc11cec027e2c10bfc12cc3cfe4e (patch)
tree8d2307b7841ef408104756e0ef91407806371e99
parent551beecf5956dac9b8d30e0542fc107be4e8dd71 (diff)
downloadopenwrt-9bb7755066fbcc11cec027e2c10bfc12cc3cfe4e.tar.gz
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@hauke-m.de> (cherry picked from commit d69b2830681fdaeb2b19b28231e9171684ead6d1)
-rw-r--r--package/network/utils/wireless-tools/Makefile2
1 files changed, 1 insertions, 1 deletions
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" \