[PATCH] allow kernel compile with native ppc64 compiler

Paul Mackerras paulus at samba.org
Mon Oct 18 15:55:52 EST 2004

Olaf Hering writes:

> > ... and breaks the compile on older toolchains that don't understand
> > -m32.  We need to make the -m32 conditional on HAS_BIARCH as defined
> > in arch/ppc64/Makefile.
> how old?

The gcc that comes with debian sid doesn't understand -m32.  That's a
32-bit gcc, which means that I set CROSS_COMPILE when doing a ppc64
kernel compile.  With your patch I have to set CROSS32_COMPILE as
well, which seems silly when I'm compiling on a ppc32 box already.

Ben H suggested making the default BOOTCC be $(CC) -m32, which makes
sense to me.


More information about the Linuxppc64-dev mailing list