mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	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: 166750bc1d ("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
		
	
			
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			252 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			252 B
		
	
	
	
		
			Text
		
	
	
	
	
	
# SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
 | 
						|
 | 
						|
prefix=@PREFIX@
 | 
						|
libdir=@LIBDIR@
 | 
						|
includedir=${prefix}/include
 | 
						|
 | 
						|
Name: libbpf
 | 
						|
Description: BPF library
 | 
						|
Version: @VERSION@
 | 
						|
Libs: -L${libdir} -lbpf
 | 
						|
Requires.private: libelf zlib
 | 
						|
Cflags: -I${includedir}
 |