Skip to content

Commit 7f70848

Browse files
committed
kdumpid: Unconditionally link with zlib
Since uncompress_config() uses functions from zlib, kdumpid must link with ZLIB. It may work without it, because ZLIB is often added as a dependency for libbfd, but we should not rely on it. Signed-off-by: Petr Tesarik <[email protected]>
1 parent d5c1876 commit 7f70848

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/kdumpid/Makefile.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ AM_CPPFLAGS = -I$(top_builddir)/include \
2323
-DVER_MAJOR=$(KDUMPID_VER_MAJOR) \
2424
-DVER_MINOR=$(KDUMPID_VER_MINOR)
2525

26+
AM_CFLAGS = \
27+
$(ZLIB_CFLAGS)
28+
2629
LIBS = \
2730
$(top_builddir)/src/kdumpfile/libkdumpfile.la \
2831
$(top_builddir)/src/addrxlat/libaddrxlat.la \
32+
$(ZLIB_LIBS) \
2933
$(DIS_ASM_LIBS)
3034

3135
kdumpid_SOURCES = \

0 commit comments

Comments
 (0)