summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-12-16 10:38:29 -0800
committerAlexei Starovoitov <ast@kernel.org>2019-12-16 14:55:29 -0800
commitdbd8f6bae6f4a98aa517aeda6e5276ed4a20f571 (patch)
tree33bd45a17977965a56d4d4d5cda180a6b56f5c07 /tools/lib
parentdc3a2d254782dea8e23a55f46129105ecfe787fb (diff)
downloadlinux-dbd8f6bae6f4a98aa517aeda6e5276ed4a20f571.tar.gz
linux-dbd8f6bae6f4a98aa517aeda6e5276ed4a20f571.tar.bz2
linux-dbd8f6bae6f4a98aa517aeda6e5276ed4a20f571.zip
libbpf: Add zlib as a dependency in pkg-config template
List zlib as another dependency of libbpf in pkg-config template. Verified it is correctly resolved to proper -lz flag: $ make DESTDIR=/tmp/libbpf-install install $ pkg-config --libs /tmp/libbpf-install/usr/local/lib64/pkgconfig/libbpf.pc -L/usr/local/lib64 -lbpf $ pkg-config --libs --static /tmp/libbpf-install/usr/local/lib64/pkgconfig/libbpf.pc -L/usr/local/lib64 -lbpf -lelf -lz Fixes: 166750bc1dd2 ("libbpf: Support libbpf-provided extern variables") Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Yonghong Song <yhs@fb.com> Cc: Luca Boccassi <bluca@debian.org> Link: https://lore.kernel.org/bpf/20191216183830.3972964-1-andriin@fb.com
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/bpf/libbpf.pc.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/libbpf.pc.template b/tools/lib/bpf/libbpf.pc.template
index ac17fcef2108..b45ed534bdfb 100644
--- a/tools/lib/bpf/libbpf.pc.template
+++ b/tools/lib/bpf/libbpf.pc.template
@@ -8,5 +8,5 @@ Name: libbpf
Description: BPF library
Version: @VERSION@
Libs: -L${libdir} -lbpf
-Requires.private: libelf
+Requires.private: libelf zlib
Cflags: -I${includedir}