diff options
author | Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp> | 2018-02-13 05:42:49 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-02-14 02:45:34 +0100 |
commit | 9492686c53f3a98e7027d1079db1471ab20e17de (patch) | |
tree | e29ed15ddb734edfd293ab5baddfd7d439aa1036 /samples | |
parent | samples/bpf: adjust rlimit RLIMIT_MEMLOCK for xdp_redirect (diff) | |
download | linux-9492686c53f3a98e7027d1079db1471ab20e17de.tar.xz linux-9492686c53f3a98e7027d1079db1471ab20e17de.zip |
bpf: samples/sockmap fix Makefile for build error
While building samples/sockmap, undefined reference error is thrown
for `nla_dump_errormsg'.
Linking tools/lib/bpf/nlattr.o as a fix
Signed-off-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/sockmap/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/sockmap/Makefile b/samples/sockmap/Makefile index 73f1da4d116c..9bf2881bd11b 100644 --- a/samples/sockmap/Makefile +++ b/samples/sockmap/Makefile @@ -2,7 +2,7 @@ hostprogs-y := sockmap # Libbpf dependencies -LIBBPF := ../../tools/lib/bpf/bpf.o +LIBBPF := ../../tools/lib/bpf/bpf.o ../../tools/lib/bpf/nlattr.o HOSTCFLAGS += -I$(objtree)/usr/include HOSTCFLAGS += -I$(srctree)/tools/lib/ |