mirror of https://github.com/openwrt/openwrt.git
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:
|
||
|---|---|---|
| .. | ||
| binutils | ||
| gdb | ||
| gperf | ||
| kselftests-bpf | ||
| leds | ||
| perf | ||
| ply | ||
| strace | ||
| tmon | ||
| trace-cmd | ||
| valgrind | ||