From 762ddeeb9ee6f83fdb460a96a68a7881f5dc1c4b Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Fri, 3 Feb 2017 14:35:42 -0800 Subject: [PATCH] fixed zstdmt compilation under Windows minGW/MSYS2, by @inikep --- programs/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/programs/Makefile b/programs/Makefile index f94bffd44..9746ec4ed 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -139,7 +139,9 @@ zstd-compress: $(ZSTDCOMMON_FILES) $(ZSTDCOMP_FILES) zstdcli.c fileio.c $(CC) $(FLAGS) -DZSTD_NOBENCH -DZSTD_NODICT -DZSTD_NODECOMPRESS $^ -o $@$(EXT) zstdmt: CPPFLAGS += -DZSTD_MULTITHREAD +ifeq (,$(filter Windows%,$(OS))) zstdmt: LDFLAGS += -lpthread +endif zstdmt: zstd generate_res: