]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
arptables: add CPPFLAGS
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 17 Feb 2026 21:22:07 +0000 (22:22 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 17 Feb 2026 21:25:22 +0000 (22:25 +0100)
Add the OpenWrt CPPFLAGS to the CFLAGS. arptables 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/arptables/Makefile

index 7f32ed139549eee502caf6333e663b7427e2e86c..260824359a1993df0abd0535098176a2e4541976 100644 (file)
@@ -31,7 +31,7 @@ define Package/arptables-legacy
 endef
 
 MAKE_FLAGS += \
-       COPT_FLAGS="$(TARGET_CFLAGS) -D__OPTIMIZE__=1" \
+       COPT_FLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -D__OPTIMIZE__=1" \
        KERNEL_DIR="$(LINUX_DIR)"
 
 define Package/arptables-legacy/install