From a71e5e0599d5f9beb8592b8a6f60aa01cbea5ce0 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 13 Jan 2015 12:55:43 -0800 Subject: [PATCH] makefile: Fix broken build under MinGW --- makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index a5477e8c..43d7880a 100644 --- a/makefile +++ b/makefile @@ -87,8 +87,10 @@ else endif find_lib = $(abspath $(strip $(firstword $(foreach dir,$(strip $(LIBPATH)),$(wildcard $(dir)/lib$(1).$(LIBEXT)))))) find_include = $(abspath $(strip $(firstword $(foreach dir,$(strip $(INCPATH)),$(wildcard $(dir)/$(1).h))))) +$(info OS=$(OS)) ifneq ($(findstring Windows,$(OS)),) - ifeq ($(findstring .exe,$(SHELL))),.exe) + $(info SHELL=$(SHELL)) + ifeq ($(findstring .exe,$(SHELL)),.exe) # MinGW WIN32 := 1 else # Msys or cygwin