aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8dda65a..e946009 100644
--- a/Makefile
+++ b/Makefile
@@ -441,7 +441,9 @@ ifeq ($(PLATFORM),mingw32)
# Some MinGW installations define CC to cc, but don't actually provide cc,
# so explicitly use gcc instead (which is the only option anyway)
- CC=gcc
+ ifeq ($(shell which $(CC) > /dev/null; echo $$?),1)
+ CC=gcc
+ endif
ifndef WINDRES
WINDRES=windres