diff --git a/Makefile b/Makefile
index 6b55f3a2..6237d94a 100644
--- a/Makefile
+++ b/Makefile
@@ -534,6 +534,10 @@ ifeq ($(PLATFORM),mingw32)
     endif
   endif
 
+  ifeq ($(CC),)
+    $(error Cannot find a suitable cross compiler for $(PLATFORM))
+  endif
+
   BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
     -DUSE_ICON