[quake3-commits] r1667 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Oct 13 20:16:17 EDT 2009


Author: tma
Date: 2009-10-13 20:16:17 -0400 (Tue, 13 Oct 2009)
New Revision: 1667

Modified:
   trunk/Makefile
Log:
* Fix cross compilation

Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2009-10-13 16:33:54 UTC (rev 1666)
+++ trunk/Makefile	2009-10-14 00:16:17 UTC (rev 1667)
@@ -441,7 +441,9 @@
 
   # 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



More information about the quake3-commits mailing list