[openwrt/openwrt] ebtables: add CPPFLAGS

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


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/77d896725f0678a7824c8a3ee46b6401df34000c

commit 77d896725f0678a7824c8a3ee46b6401df34000c
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Tue Feb 17 22:22:44 2026 +0100

    ebtables: add CPPFLAGS
    
    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 at hauke-m.de>
---
 package/network/utils/ebtables/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/utils/ebtables/Makefile b/package/network/utils/ebtables/Makefile
index 33a95f10ea..fd195f35ed 100644
--- a/package/network/utils/ebtables/Makefile
+++ b/package/network/utils/ebtables/Makefile
@@ -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




More information about the lede-commits mailing list