[openwrt/openwrt] ucode-mod-bpf: add CPPFLAGS

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


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/482ba7230a4fbbc9d85fc587c354d423e04984c3

commit 482ba7230a4fbbc9d85fc587c354d423e04984c3
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Tue Feb 17 22:23:27 2026 +0100

    ucode-mod-bpf: add CPPFLAGS
    
    Forward the OpenWrt CPPFLAGS to the compile process. This fixes fortify
    sources support.
    
    Link: https://github.com/openwrt/openwrt/pull/22056
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    (cherry picked from commit c3f2a09a25b17d16f9c38dc49cc3a4b424d1e1d6)
---
 package/utils/ucode-mod-bpf/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/utils/ucode-mod-bpf/Makefile b/package/utils/ucode-mod-bpf/Makefile
index a748b9dbbd..8454ad16c4 100644
--- a/package/utils/ucode-mod-bpf/Makefile
+++ b/package/utils/ucode-mod-bpf/Makefile
@@ -32,7 +32,7 @@ define Build/Configure
 endef
 
 define Build/Compile
-	$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(FPIC) \
+	$(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(FPIC) \
 		-Wall -ffunction-sections -Wl,--gc-sections -shared -Wl,--no-as-needed -lbpf \
 		-o $(PKG_BUILD_DIR)/bpf.so $(PKG_BUILD_DIR)/bpf.c
 endef




More information about the lede-commits mailing list