syslinux 3.63: Use $(CC) for examining compiler options
authorMaciej W. Rozycki <macro@linux-mips.org>
Thu, 17 Apr 2008 22:46:08 +0000 (23:46 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 18 Apr 2008 02:09:17 +0000 (22:09 -0400)
 Following changes to other Makefiles use $(CC) for examining compiler
options here as well.

com32/lib/MCONFIG

index 7f88055..e9b2941 100644 (file)
@@ -2,7 +2,7 @@
 
 TMPFILE = $(shell mktemp /tmp/gcc_ok.XXXXXX)
 
-gcc_ok  = $(shell tmpf=$(TMPFILE); if gcc $(1) -c -x c /dev/null -o $$tmpf 2>/dev/null; \
+gcc_ok  = $(shell tmpf=$(TMPFILE); if $(CC) $(1) -c -x c /dev/null -o $$tmpf 2>/dev/null; \
          then echo $(1); else echo $(2); fi; rm -f $$tmpf)
 
 GCCOPT := $(call gcc_ok,-m32,) $(call gcc_ok,-fno-stack-protector,)