From c3cbd9a2e2c9158647cf5718cf42efeead7fd4c5 Mon Sep 17 00:00:00 2001 From: okuoku Date: Thu, 14 Dec 2017 20:14:21 +0900 Subject: [PATCH] Makefile: Fix Cygwin build Fix Cygwin build; gmake's $(OS) will yield Windows_NT even on Cygwin. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 8918c429..265bb40d 100644 --- a/Makefile +++ b/Makefile @@ -29,9 +29,13 @@ ifeq ($(OS), Windows_NT) ifeq ($(PLATFORM),msys) EXCLUDE_WIN32_LIBS=1 else +ifeq ($(shell uname -o),Cygwin) +EXCLUDE_WIN32_LIBS=1 +else EXCLUDE_POSIX_LIBS=1 endif endif +endif ########################################################################