Commit 1f4aa4ba024c8209fd3016543e8dc819bd5e624a

David Turner 2000-06-07T20:19:44

bugfix for using gcc with lots of options :-)

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/demos/graph/win32/rules.mk b/demos/graph/win32/rules.mk
index d02ceeb..2c177c5 100644
--- a/demos/graph/win32/rules.mk
+++ b/demos/graph/win32/rules.mk
@@ -26,7 +26,7 @@ $(OBJ_)grwin32.$O: $(GR_WIN32_)grwin32.c $(GR_WIN32_)grwin32.h
 
 # Now update COMPILE_GRAPH_LIB according to the compiler used on Win32
 #
-ifeq ($(CC),gcc)   # test for GCC
+ifeq ($(firstword $(CC)),gcc)   # test for GCC
 LINK              = $(CC) $T$@ $< $(FTLIB)
 COMMON_LINK       = $(LINK) $(COMMON_OBJ)
 GRAPH_LINK        = $(COMMON_LINK) $(GRAPH_LIB) -luser32 -lgdi32