From c26a4cb3f82692ddc943f891c41d72e3cafce211 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 22 Mar 2013 14:26:29 +0000 Subject: (Hopefully) fix the Jenkins build --- Makefile | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 6649887f..ea3cdb0f 100644 --- a/Makefile +++ b/Makefile @@ -465,16 +465,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 @@ -497,6 +487,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 \ @@ -1090,6 +1090,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); \ -- cgit