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)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 15 Dec 2022 21:53:10 +0000 (22:53 +0100)
commit0e43662e61f2569500ab83b8188c065603530785
treedce398ff9fd8c89a5cbf95e58278786244252642
parent4fb877aaa179dcdb1676d55216482febaada457e
tools/resolve_btfids: Use pkg-config to locate libelf

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
tools/bpf/resolve_btfids/Makefile