openwrt/package/devel
Tianling Shen bf0e70d6e5 kselftests-bpf: prevent target flags leaking through SAN_LDFLAGS
SAN_LDFLAGS defaults to SAN_CFLAGS in the BPF selftests Makefile.
Since OpenWrt exports LDFLAGS, appending SAN_LDFLAGS also exports the
target compiler flags to host tool builds. Host libbpf compilation
resets CFLAGS, but its shared library link still inherits LDFLAGS,
causing host gcc to reject options such as -fhonour-copts.

Explicitly clear SAN_LDFLAGS to prevent this fallback. Target builds
continue to receive compiler flags through SAN_CFLAGS and linker
flags through LDLIBS.

Fixes: 8694449c7a ("kselftests-bpf: isolate target userspace compiler flags")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/26390
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-11-02 13:32:19 +01:00
..
binutils package: binutils: deduplicate ld 2026-04-18 19:34:21 +02:00
gdb gdb: add CPPFLAGS 2026-02-17 22:16:58 +01:00
gperf
…
kselftests-bpf kselftests-bpf: prevent target flags leaking through SAN_LDFLAGS 2026-11-02 13:32:19 +01:00
leds
…
perf
…
ply
…
strace strace: use bundled kernel headers 2026-01-21 11:41:59 +01:00
tmon
…
trace-cmd
…
valgrind valgrind: fix ARMv7 detection on AArch64 2026-09-23 17:02:01 +02:00