cross compile libc

Martin Minkus diskiller at diskiller.net
Tue Mar 8 06:27:13 GMT 2005


On 8/3/05 1:21 PM, "Peter Grehan" <grehan at freebsd.org> wrote:

>> hi someone could help me cross compile libc from /usr/src ??
>> I mus download the source from CURRENT ??
> 
>   Yes.
> 
>> someone could help me to create a toolchain and cross compilate freebsd
>> to powerPC ??? 
> 
>   Once you've downloaded the source, then apply the diff at:
> 
>     http://people.freebsd.org/~grehan/sysv4.h.diff
> 
>   and then:
> 
>     # make TARGET_ARCH=powerpc buildworld

Just a warning. Make sure you edit your /etc/make.conf

And change any lines that contain something like this:

CFLAGS=-O -pipe -march=pentiumpro -mtune=pentiumpro

To this:

CFLAGS=-O -pipe

Or you'll find your make buildworld will fail when it goes to invoke your
powerpc crosscompiler and it doesn't know what those pentiumpro options are
;)

Thanks,
Martin.




More information about the freebsd-ppc mailing list