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>
This commit is contained in:
Hauke Mehrtens 2026-02-17 00:55:11 +01:00
parent 0f1c1c581f
commit d69b283068

View 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" \