]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: add libelf dependency to shared library build
authorBjörn Töpel <bjorn.topel@intel.com>
Wed, 27 Mar 2019 13:51:14 +0000 (14:51 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 28 Mar 2019 15:24:52 +0000 (16:24 +0100)
commit9bc5683d5d7195879f1e028e144433af15e57da7
tree95901b6211be6def077fd3be4d20bf4cc1e228d8
parent7782c9b76134ebd9efed258c20af75a86ba81c03
libbpf: add libelf dependency to shared library build

The DPDK project is moving forward with its AF_XDP PMD, and during
that process some libbpf issues surfaced [1]: When libbpf was built
as a shared library, libelf was not included in the linking phase.
Since libelf is an internal depedency to libbpf, libelf should be
included. This patch adds '-lelf' to resolve that.

  [1] https://patches.dpdk.org/patch/50704/#93571

Fixes: b3788de64fcf ("bpf tools: Introduce 'bpf' library and add bpf feature check")
Suggested-by: Luca Boccassi <bluca@debian.org>
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/Makefile