aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-10-14 00:16:17 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-10-14 00:16:17 +0000
commitdd40ddbbb84dd156bc404e561a40b861f9e4184d (patch)
tree9480687a1cf7f24cfb9caf876e088c5da1c4be78 /Makefile
parent8724787924a2124f51d8e21b3eaa4ff0a1acb55e (diff)
downloadioquake3-aero-dd40ddbbb84dd156bc404e561a40b861f9e4184d.tar.gz
ioquake3-aero-dd40ddbbb84dd156bc404e561a40b861f9e4184d.zip
* Fix cross compilation
git-svn-id: svn://svn.icculus.org/quake3/trunk@1667 edf5b092-35ff-0310-97b2-ce42778d08ea
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