Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use libbpf-static instead of libbpf-debugsource for CMAKE_USE_LIBBPF_…
…PACKAGE Currently when building with CMAKE_USE_LIBBPF_PACKAGE we assume that 'source' package is available to build libbcc_bpf libraries. However It turned on that using debugsource (in Fedora) package is not suitable or even possible, so we are switching to use the libbpf-static package instead. Adding libbpf-static package detection and removing source package detection. Using ar to extract objects from archive and linking them with both libbcc_bpf.so and libbcc_bpf.a. Using always uapi headers from the latest libbpf Github repo, because there are not packaged, but they are backwards compatible, so it's no problem to have older libbpf package with newer uapi headers. Signed-off-by: Jiri Olsa <[email protected]>
- Loading branch information