diff options
author | 2022-01-12 00:25:03 +0000 | |
---|---|---|
committer | 2022-01-14 16:53:23 -0800 | |
commit | 0e3a1c902ffb56e9fe4416f0cd382c97b09ecbf6 (patch) | |
tree | 5bcfa4b8ba801c404e883cbf71d3b9022ce14e66 /net/unix/af_unix.c | |
parent | bpf/scripts: Raise an exception if the correct number of helpers are not generated (diff) | |
download | wireguard-linux-0e3a1c902ffb56e9fe4416f0cd382c97b09ecbf6.tar.xz wireguard-linux-0e3a1c902ffb56e9fe4416f0cd382c97b09ecbf6.zip |
tools/resolve_btfids: Build with host flags
resolve_btfids is built using $(HOSTCC) and $(HOSTLD) but does not
pick up the corresponding flags. As a result, host-specific settings
(such as a sysroot specified via HOSTCFLAGS=--sysroot=..., or a linker
specified via HOSTLDFLAGS=-fuse-ld=...) will not be respected.
Fix this by setting CFLAGS to KBUILD_HOSTCFLAGS and LDFLAGS to
KBUILD_HOSTLDFLAGS.
Also pass the cflags through to libbpf via EXTRA_CFLAGS to ensure that
the host libbpf is built with flags consistent with resolve_btfids.
Signed-off-by: Connor O'Brien <connoro@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20220112002503.115968-1-connoro@google.com
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions