mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-05 16:19:06 +08:00
tools/bpf: generate pkg-config file for libbpf
Generate a libbpf.pc file at build time so that users can rely on pkg-config to find the library, its CFLAGS and LDFLAGS. Signed-off-by: Luca Boccassi <bluca@debian.org> Acked-by: Andrey Ignatov <rdna@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
This commit is contained in:
committed by
Andrii Nakryiko
parent
413703c8cb
commit
9d60bfdfa6
12
src/libbpf.pc.template
Normal file
12
src/libbpf.pc.template
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# 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
|
||||||
|
Cflags: -I${includedir}
|
||||||
Reference in New Issue
Block a user