From 615581667234ded004a9f681418bd680ce852e0f Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 22 Mar 2013 14:26:29 +0000 Subject: [PATCH] (Hopefully) fix the Jenkins build --- Makefile | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index e0f7cab6..18633d0b 100644 --- a/Makefile +++ b/Makefile @@ -477,16 +477,6 @@ else # ifeq darwin ifeq ($(PLATFORM),mingw32) - # Some MinGW installations define CC to cc, but don't actually provide cc, - # so check that CC points to a real binary and use gcc if it doesn't - ifeq ($(call bin_path, $(CC)),) - CC=gcc - endif - - ifndef WINDRES - WINDRES=windres - endif - ifeq ($(CROSS_COMPILING),1) # If CC is already set to something generic, we probably want to use # something more specific @@ -509,6 +499,16 @@ ifeq ($(PLATFORM),mingw32) WINDRES=$(strip $(foreach MINGW_PREFIX, $(MINGW_PREFIXES), \ $(call bin_path, $(MINGW_PREFIX)-windres))) endif + else + # Some MinGW installations define CC to cc, but don't actually provide cc, + # so check that CC points to a real binary and use gcc if it doesn't + ifeq ($(call bin_path, $(CC)),) + CC=gcc + endif + + ifndef WINDRES + WINDRES=windres + endif endif BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \ @@ -1141,6 +1141,9 @@ targets: makedirs @echo " COMPILE_PLATFORM: $(COMPILE_PLATFORM)" @echo " COMPILE_ARCH: $(COMPILE_ARCH)" @echo " CC: $(CC)" +ifeq ($(PLATFORM),mingw32) + @echo " WINDRES: $(WINDRES)" +endif @echo "" @echo " CFLAGS:" -@for i in $(CFLAGS); \