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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:50:40 +0000 (09:50 +0200)
commit0ad4ddb27e2b7b83bfc453178ce190988f301991
tree62c9d3be5c224827289d8ff79583cd4ff325a3de
parent494629ba62a961de1f2dd0b7125878acb27b8043
libbpf: Re-build libbpf.so when libbpf.map changes

[ Upstream commit 61c7aa5020e98ac2fdcf07d07eec1baf2e9f0a08 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/lib/bpf/Makefile