Skip to content

Commit e9e4cae

Browse files
committed
Update libbpf to 0.0.8 release
Starting from 0.0.7 libbpf requires zlib as a build dependency. This commit adds -lz to LIBS in common.mk and adds zlib-devel as a libbpf build dependency in the ansible playbook. Signed-off-by: Zebaz <[email protected]>
1 parent b13cfb8 commit e9e4cae

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Diff for: common/common.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ LDFLAGS ?= -L$(LIBBPF_DIR)
4545

4646
BPF_CFLAGS ?= -I$(LIBBPF_DIR)/build/usr/include/ -I../headers/
4747

48-
LIBS = -l:libbpf.a -lelf $(USER_LIBS)
48+
LIBS = -l:libbpf.a -lelf -lz $(USER_LIBS)
4949

5050
all: llvm-check $(USER_TARGETS) $(XDP_OBJ) $(COPY_LOADER) $(COPY_STATS)
5151

Diff for: setup-testlab/ansible/roles/tutorial/tasks/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
dnf:
8585
name:
8686
- elfutils-libelf-devel
87+
- zlib-devel
8788
state: installed
8889

8990
- name: Packages - pahole/dwarves build dependencies

0 commit comments

Comments
 (0)