From 8b14cb43ff8374715dca1a0902f7ecdc729d7bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 8 Sep 2020 10:47:10 +0200 Subject: [PATCH] Makefile: link against zlib Without this we would be missing symbols, as shown e.g. by ldd -r libbpf.so --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index bb70867..74234f6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -24,8 +24,8 @@ ifdef NO_PKG_CONFIG ALL_LDFLAGS += -lelf -lz else PKG_CONFIG ?= pkg-config - ALL_CFLAGS += $(shell $(PKG_CONFIG) --cflags libelf) - ALL_LDFLAGS += $(shell $(PKG_CONFIG) --libs libelf) + ALL_CFLAGS += $(shell $(PKG_CONFIG) --cflags libelf zlib) + ALL_LDFLAGS += $(shell $(PKG_CONFIG) --libs libelf zlib) endif OBJDIR ?= .