From: Toke Høiland-Jørgensen Date: Mon, 16 Dec 2019 10:24:05 +0000 (+0100) Subject: samples/bpf: Add missing -lz to TPROGS_LDLIBS X-Git-Tag: v5.6-rc1~151^2~199^2~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5615ed472dc04e38a1affca69059f17c1178f770;p=thirdparty%2Fkernel%2Flinux.git samples/bpf: Add missing -lz to TPROGS_LDLIBS Since libbpf now links against zlib, this needs to be included in the linker invocation for the userspace programs in samples/bpf that link statically against libbpf. Fixes: 166750bc1dd2 ("libbpf: Support libbpf-provided extern variables") Signed-off-by: Toke Høiland-Jørgensen Signed-off-by: Alexei Starovoitov Tested-by: Björn Töpel Link: https://lore.kernel.org/bpf/20191216102405.353834-1-toke@redhat.com --- diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 8003d2823fa88..227077ae66ed0 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -198,7 +198,7 @@ endif TPROGCFLAGS_bpf_load.o += -Wno-unused-variable -TPROGS_LDLIBS += $(LIBBPF) -lelf +TPROGS_LDLIBS += $(LIBBPF) -lelf -lz TPROGLDLIBS_tracex4 += -lrt TPROGLDLIBS_trace_output += -lrt TPROGLDLIBS_map_perf_test += -lrt