projects
/
openwrt
/
staging
/
xback.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77d8967
)
ucode-mod-bpf: add CPPFLAGS
author
Hauke Mehrtens
<hauke@hauke-m.de>
Tue, 17 Feb 2026 21:23:27 +0000
(22:23 +0100)
committer
Hauke 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
patch
|
blob
|
history
diff --git
a/package/utils/ucode-mod-bpf/Makefile
b/package/utils/ucode-mod-bpf/Makefile
index a748b9dbbd0df6a23166096dfd962d0f59c38f3b..8454ad16c4d4c13c73cfd1f162d135457171b4e2 100644
(file)
--- 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_C
PPFLAGS) $(TARGET_C
FLAGS) $(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