Use CC consistently in test-gcc.sh script.
diff --git a/tools/test-gcc.sh b/tools/test-gcc.sh
index c08ed82..f3b8b58 100755
--- a/tools/test-gcc.sh
+++ b/tools/test-gcc.sh
@@ -9,7 +9,7 @@
 TMPFILE3o=out/tmp_testcompile3.o
 
 # Test for "-fwhole-program"
-gcc -fwhole-program -S -o /dev/null -xc /dev/null > /dev/null 2>&1
+$CC -fwhole-program -S -o /dev/null -xc /dev/null > /dev/null 2>&1
 if [ $? -ne 0 ]; then
     echo "This version of gcc does not support -fwhole-program." > /dev/fd/2
     echo "Please upgrade to gcc v4.1 or later" > /dev/fd/2