From dd40ddbbb84dd156bc404e561a40b861f9e4184d Mon Sep 17 00:00:00 2001 From: tma Date: Wed, 14 Oct 2009 00:16:17 +0000 Subject: * Fix cross compilation git-svn-id: svn://svn.icculus.org/quake3/trunk@1667 edf5b092-35ff-0310-97b2-ce42778d08ea --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3