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 <jolsa@kernel.org>
- Loading branch information
1 parent
556d9ec
commit e09116d
Showing
2 changed files
with
19 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters