]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ucode-mod-bpf: add CPPFLAGS 22056/head
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 17 Feb 2026 21:23:27 +0000 (22:23 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 17 Feb 2026 21:25:31 +0000 (22:25 +0100)
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@hauke-m.de>
package/utils/ucode-mod-bpf/Makefile

index a748b9dbbd0df6a23166096dfd962d0f59c38f3b..8454ad16c4d4c13c73cfd1f162d135457171b4e2 100644 (file)
@@ -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