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

package/network/utils/ebtables/Makefile

index 55df72b654cb69cf4350c99c7b2aa2f437ddc917..d46642667ca2befbb88f992e1ee10555410d70f0 100644 (file)
@@ -56,7 +56,7 @@ endef
 MAKE_VARS += EXT_LIBSI="$(LIBGCC_S)"
 
 MAKE_FLAGS += \
-       CFLAGS="$(TARGET_CFLAGS)" \
+       CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
        LIBDIR="/usr/lib/ebtables"
 
 define Package/ebtables-legacy/install