Skip to content

Commit 482ba72

Browse files
committed
ucode-mod-bpf: add CPPFLAGS
Forward the OpenWrt CPPFLAGS to the compile process. This fixes fortify sources support. Link: openwrt#22056 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit c3f2a09)
1 parent 9cd17a1 commit 482ba72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package/utils/ucode-mod-bpf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ define Build/Configure
3232
endef
3333

3434
define Build/Compile
35-
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(FPIC) \
35+
$(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(FPIC) \
3636
-Wall -ffunction-sections -Wl,--gc-sections -shared -Wl,--no-as-needed -lbpf \
3737
-o $(PKG_BUILD_DIR)/bpf.so $(PKG_BUILD_DIR)/bpf.c
3838
endef

0 commit comments

Comments
 (0)