[PATCH 03/11] makedumpfile: Add zstd build support

Tao Liu ltao at redhat.com
Fri Sep 10 03:33:10 PDT 2021


Signed-off-by: Tao Liu <ltao at redhat.com>
Signed-off-by: Coiby Xu <coxu at redhat.com>
---
 Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index 5d61a69..725c186 100644
--- a/Makefile
+++ b/Makefile
@@ -68,6 +68,11 @@ endif
 CFLAGS += -DUSESNAPPY
 endif
 
+ifeq ($(USEZSTD), on)
+LIBS := -lzstd $(LIBS)
+CFLAGS += -DUSEZSTD
+endif
+
 LIBS := $(LIBS) -lpthread
 
 try-run = $(shell set -e;		\
-- 
2.29.2




More information about the kexec mailing list