From: Yann Collet Date: Fri, 3 Feb 2017 22:35:42 +0000 (-0800) Subject: fixed zstdmt compilation under Windows minGW/MSYS2, by @inikep X-Git-Tag: v1.1.3^2~1^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=762ddeeb9ee6f83fdb460a96a68a7881f5dc1c4b;p=thirdparty%2Fzstd.git fixed zstdmt compilation under Windows minGW/MSYS2, by @inikep --- 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: