diff -Naur zstd-1.1.2-orig/Makefile zstd-1.1.2/Makefile --- zstd-1.1.2-orig/Makefile 2016-12-14 21:53:47.000000000 +0800 +++ zstd-1.1.2/Makefile 2016-12-26 20:24:50.755892300 +0800 @@ -61,7 +61,7 @@ #------------------------------------------------------------------------------ # make install is validated only for Linux, OSX, Hurd and some BSD targets #------------------------------------------------------------------------------ -ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly NetBSD)) +ifneq (,$(filter $(shell uname -o),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly NetBSD Msys)) HOST_OS = POSIX .PHONY: install uninstall travis-install clangtest gpptest armtest usan asan uasan diff -Naur zstd-1.1.2-orig/programs/Makefile zstd-1.1.2/programs/Makefile --- zstd-1.1.2-orig/programs/Makefile 2016-12-14 21:53:47.000000000 +0800 +++ zstd-1.1.2/programs/Makefile 2016-12-26 20:25:33.603688900 +0800 @@ -153,7 +153,7 @@ #---------------------------------------------------------------------------------- #make install is validated only for Linux, OSX, kFreeBSD, Hurd and some BSD targets #---------------------------------------------------------------------------------- -ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly NetBSD)) +ifneq (,$(filter $(shell uname -o),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly NetBSD Msys)) install: zstd @echo Installing binaries @install -d -m 755 $(DESTDIR)$(BINDIR)/ $(DESTDIR)$(MANDIR)/