[OpenBIOS] PPC cross-compiler defaults to 'powerpc-linux-gnu-' prefix

Stefan Reinauer stepan at coresystems.de
Wed Nov 25 18:45:57 CET 2009

On 11/25/09 5:43 PM, Segher Boessenkool wrote:
>> While setting up a PPC cross-compiler environment for OpenBIOS, I
>> noticed that the default cross-compiler prefix is set to
>> 'powerpc-linux-gnu-' as opposed to 'powerpc-elf-'.
> Is there any reason you want -elf instead of -eabi? :-)
Just the crazy assumption there's a generic pattern behind all the
target names.

-eabi is probably the right one.

>> Is there any particular reason that we need the linux platform version,
>> instead of the elf version which is used by SPARC? The reason I ask is
>> that the Linux platform version is much much harder to compile as you
>> need an extra set of glibc headers and have to bootstrap the gcc build
>> by hand in order to produce the working final compiler.
> Use --without-headers, and maybe some of the --disable-* flags,
> and you don't need glibc (or any other C library).  Oh, and
> --enable-languages=c of course.
interesting... That builds glibc-free linux compilers?


More information about the OpenBIOS mailing list