OSDN Git Service

libbpf: Re-build libbpf.so when libbpf.map changes
authorAndrii Nakryiko <andrii@kernel.org>
Sun, 15 Aug 2021 07:06:00 +0000 (00:06 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 16 Aug 2021 22:45:07 +0000 (00:45 +0200)
commit61c7aa5020e98ac2fdcf07d07eec1baf2e9f0a08
tree35562a9fe667679a163c2ec8b36fdc53dbaf15f9
parent7adfc6c9b315e174cf8743b21b7b691c8766791b
libbpf: Re-build libbpf.so when libbpf.map changes

Ensure libbpf.so is re-built whenever libbpf.map is modified.  Without this,
changes to libbpf.map are not detected and versioned symbols mismatch error
will be reported until `make clean && make` is used, which is a suboptimal
developer experience.

Fixes: 306b267cb3c4 ("libbpf: Verify versioned symbols")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210815070609.987780-8-andrii@kernel.org
tools/lib/bpf/Makefile