[distcc] linux 2.2 breakage

Martin Pool mbp at samba.org
Tue Sep 17 06:06:01 GMT 2002

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)'


More information about the distcc mailing list