diff -Naur linux-2.6.8.1/arch/ppc64/Makefile linux-2.6.8.1-gentoo/arch/ppc64/Makefile --- linux-2.6.8.1/arch/ppc64/Makefile 2005-06-17 15:48:29.000000000 -0400 +++ linux-2.6.8.1-gentoo/arch/ppc64/Makefile 2005-06-30 19:33:53.000000000 -0400 @@ -14,6 +14,7 @@ # KERNELLOAD := 0xc000000000000000 +CC := $(shell if $(CC) -m64 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo $(CC); else echo powerpc64-linux-gcc; fi ) HAS_BIARCH := $(shell if $(CC) -m64 -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo y; else echo n; fi;) ifeq ($(HAS_BIARCH),y)