ppc64 biarch binutils configure uses different default "--target" than gcc, glibc

Alan Modra amodra at bigpond.net.au
Sat Feb 19 15:38:03 EST 2005

On Fri, Feb 18, 2005 at 11:23:35AM -0800, Nitin Gupta wrote:
> Hi,
> I downloaded scripts to build ppc 970 biarch toolchain from 
> ftp://ftp.linuxppc64.org/pub/people/janis. I noticed that only binutils 
> uses default target (--target) to be powerpc-linux where as gcc,glibc 
> uses powerpc64-linux. Is there any reason for that? BTW. binutils has 
> --enable-targets=powerpc64-linux in its configure command
> Please, let me know, if should  put this question at binutils mailing list.

GCC biarch support wasn't designed well.  The 64-bit target of a pair,
eg. (powerpc64-linux, powerpc-linux), (x86_64-linux, i686-linux) is the
one you need to select when configuring, but you often don't want this
to be the default target.  ie. you want 32-bit output by default.  On
powerpc-linux, you'd do this by specifying --with-cpu=default32.

binutils is a little more straight-forward, with the default target
being specified from --target, and other targets by --enable-targets.

Alan Modra
IBM OzLabs - Linux Technology Centre

More information about the Linuxppc64-dev mailing list