]> git.baikalelectronics.ru Git - kernel.git/commit
tools: bpftool: do not link twice against libbpf.a in Makefile
authorQuentin Monnet <quentin.monnet@netronome.com>
Fri, 30 Aug 2019 11:00:40 +0000 (12:00 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 30 Aug 2019 22:38:16 +0000 (00:38 +0200)
commit824e0de78833b1ec27371cff15b2f372073cbea9
treed18f4c8800bdbcb680f5c04100ff10e7d1c25c1d
parenta131282db95660b4a09c81a84bc7f9ef1e010829
tools: bpftool: do not link twice against libbpf.a in Makefile

In bpftool's Makefile, $(LIBS) includes $(LIBBPF), therefore the library
is used twice in the linking command. No need to have $(LIBBPF) (from
$^) on that command, let's do with "$(OBJS) $(LIBS)" (but move $(LIBBPF)
_before_ the -l flags in $(LIBS)).

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/Makefile