From: Prashant Bhole Date: Tue, 13 Feb 2018 04:42:49 +0000 (+0900) Subject: bpf: samples/sockmap fix Makefile for build error X-Git-Tag: v4.19~1326^2~369^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9492686c53f3a98e7027d1079db1471ab20e17de;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Alexei Starovoitov --- diff --git a/samples/sockmap/Makefile b/samples/sockmap/Makefile index 73f1da4..9bf2881 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/