bugfix for using gcc with lots of options :-)
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