tools/resolve_btfids: Use pkg-config to locate libelf
authorShen Jiamin <shen_jiamin@comp.nus.edu.sg>
Thu, 15 Dec 2022 04:47:03 +0000 (12:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:42:27 +0000 (09:42 +0200)
commitd35187340a8ae872f30aa620c406d12a9b9812ad
tree2ad56b304ba49ff267698dfbf5f2cfc4c8c98a66
parent05026e944bd20bc131c13f4b485ba205fee94d9f
tools/resolve_btfids: Use pkg-config to locate libelf

commit 0e43662e61f2569500ab83b8188c065603530785 upstream.

When libelf was not installed in the standard location, it cannot be
located by the current building config.

Use pkg-config to help locate libelf in such cases.

Signed-off-by: Shen Jiamin <shen_jiamin@comp.nus.edu.sg>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/20221215044703.400139-1-shen_jiamin@comp.nus.edu.sg
Cc: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/bpf/resolve_btfids/Makefile