mirror of
https://github.com/netdata/libbpf.git
synced 2026-11-05 17:30:15 +08:00
Makefile: link against zlib
Without this we would be missing symbols, as shown e.g. by ldd -r libbpf.so
This commit is contained in:
1 parent
011700e68d
commit
8b14cb43ff
1 file changed
+2
-2
+2
-2
@@ -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 ?= .
|
||||
|
||||
Reference in new issue
Block a user