[openwrt/openwrt] ucode-mod-bpf: add CPPFLAGS
LEDE Commits
lede-commits at lists.infradead.org
Tue Feb 17 13:27:58 PST 2026
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c3f2a09a25b17d16f9c38dc49cc3a4b424d1e1d6
commit c3f2a09a25b17d16f9c38dc49cc3a4b424d1e1d6
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>
---
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