Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 May 2009 09:55:35 -0400 (EDT)
From:      Daniel Eischen <deischen@freebsd.org>
To:        xorquewasp@googlemail.com
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: bootstrapping gnat GCC on amd64
Message-ID:  <Pine.GSO.4.64.0905190953200.25229@sea.ntplx.net>
In-Reply-To: <20090519060405.GA43127@logik.internal.network>
References:  <20090505005128.GA4519@logik.internal.network> <Pine.GSO.4.64.0905042052320.16666@sea.ntplx.net> <20090505022151.GA32477@logik.internal.network> <Pine.GSO.4.64.0905042224180.16666@sea.ntplx.net> <20090506140325.GA69468@logik.internal.network> <Pine.GSO.4.64.0905061043420.26946@sea.ntplx.net> <20090506152222.GC69468@logik.internal.network> <20090508211022.GA37475@logik.internal.network> <20090518084831.GA95354@logik.internal.network> <Pine.GSO.4.64.0905181828110.20749@sea.ntplx.net> <20090519060405.GA43127@logik.internal.network>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 19 May 2009, xorquewasp@googlemail.com wrote:

> On 2009-05-18 18:36:15, Daniel Eischen wrote:
>> Hmm, if the system binutils is 2.15, then it should build
>> as a cross.  You can do a cross build of all FreeBSD - I
>> think you just set TARGET="amd64" to build amd64 from
>> a different arch.  Part of this process should be to
>> create a cross binutils toolset.
>
> Ok.
>
> Silly question - is it actually possible to build contrib/binutils
> (including TARGET=amd64) without building the whole tree? Trying
> the obvious:
>
>  cd /usr/obj
>  /usr/src/contrib/binutils/configure \
>    --target=x86_64-pc-freebsd7.2     \
>    --host=i386-pc-freebsd7.2         \
>    --build=i386-pc-freebsd7.2        \
>    --prefix=/cross/x86_64
>
> .. Didn't work (didn't really expect it to).

I've not done a cross build before, but I'd look in
src/Makefile.inc1 if you want to try to build it
piecemeal (see the target for cross-tools).

-- 
DE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0905190953200.25229>