selftests/bpf: Use pkg-config for libelf
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Sat, 25 Nov 2023 08:42:52 +0000 (17:42 +0900)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 29 Nov 2023 06:15:29 +0000 (22:15 -0800)
commit8998a479fd96b0b209dcb2feb468eba7eddb4ddb
tree0ce3896096bf17db577b084f544e8aa5b69335f1
parent18f6f9de98d1d0f7040e6e6c39fce8939f55520f
selftests/bpf: Use pkg-config for libelf

When linking statically, libraries may require other dependencies to be
included to ld flags. In particular, libelf may require libzstd. Use
pkg-config to determine such dependencies.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20231125084253.85025-4-akihiko.odaki@daynix.com
tools/testing/selftests/bpf/Makefile