Isn't this completely broken? I mean, it wont detect the others at all. It
will leave CC="" if gcc272 or kgcc are there.
How about:
CC = $(shell if [ -n "$(CROSS_COMPILE)" ]; then echo $(CROSS_COMPILE)cc; else \
if which gcc272 > /dev/null 2> /dev/null; then \
which gcc272; \
else \
if which kgcc > /dev/null 2> /dev/null; then \
which kgcc; \
else \
echo cc; \
fi; \
fi) -D__KERNEL__ -I$(HPATH)
(obscure as needed)
-- -----------=======-=-======-=========-----------=====------------=-=------ / Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \ ` bcollins@debian.org -- bcollins@openldap.org -- bcollins@linux.com ' `---=========------=======-------------=-=-----=-===-======-------=--=---' - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/