From c3f2a09a25b17d16f9c38dc49cc3a4b424d1e1d6 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Tue, 17 Feb 2026 22:23:27 +0100 Subject: [PATCH] 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 --- 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 a748b9dbbd0..8454ad16c4d 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 -- 2.47.3