Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Mar 2005 16:57:11 +1030
From:      Martin Minkus <diskiller@diskiller.net>
To:        <powerpc@freebsd.org>
Subject:   Re: cross compile libc
Message-ID:  <BE5389E7.2A88E%diskiller@diskiller.net>
In-Reply-To: <422D1349.2000200@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/3/05 1:21 PM, "Peter Grehan" <grehan@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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BE5389E7.2A88E%diskiller>