Building Linux 2.2 with CC=distcc fails because of this crazy
construct in its Makefile:
CC =$(shell if [ -n "$(CROSS_COMPILE)" ]; then echo $(CROSS_COMPILE)gcc; else \
$(CONFIG_SHELL) scripts/kwhich gcc272 2>/dev/null || $(CONFIG_SHELL)
scripts/kwhich kgcc 2>/dev/null || echo cc; fi) \
-D__KERNEL__ -I$(HPATH)
CPP =$(CC) -E
$(CC) is actually the compiler name plus some options, so simply doing
make CC=gcc
fails in a confusing way.
Perhaps this is an argument for "ln -s distcc cc". At any rate,
putting in the extra options fixes it:
make CC='distcc -D__KERNEL__ -I$(HPATH)'
--
Martin
_______________________________________________
distcc mailing list
[EMAIL PROTECTED]
http://lists.samba.org/cgi-bin/mailman/listinfo/distcc