[PATCH] ppc64 & powerpc: Check whether the native CC can use -m64
Arnd Bergmann
arnd at arndb.de
Thu Nov 10 03:55:14 EST 2005
On Middeweken 09 November 2005 16:56, Daniel Ostrow wrote:
> On 11:43 Wed 09 Nov , Arnd Bergmann wrote:
> > On Dinsdag 08 November 2005 20:14, Daniel Ostrow wrote:
> > > +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 )
> >
> > You should be using $(call cc-option,-m64) for this, like we do in the
> > rest of the Makefile.
> >
> > Arnd <><
>
> Is something like the following better?
I find that much more readable, yes.
However, I first misunderstood what you are really trying to do.
I think that if you want to use a cross compiler, you normally
should set $(CROSS_COMPILE) to powerpc64-linux- instead of
only changing $(CC) but not the other tools, right?
Arnd <><
More information about the Linuxppc64-dev
mailing list