compiling system binutils as cross tools
xorquewasp at googlemail.com
xorquewasp at googlemail.com
Fri May 22 08:15:47 UTC 2009
On 2009-05-22 02:53:22, Stanislav Sedov wrote:
>
> Why not make this compiler to use fresh binutils from cross-binutils
> instead of using systems binutils? This will also allow to support
> newer processor families and architectures. Is it possible to tell
> GNAT where to look for binutils to assembly and link with?
>
Well, like I said, at the moment there's a choice of using the system
binutils or the cross-binutils port. The compiler isn't actually
intended to be a cross compiler but a native amd64 compiler (the
lang/gnat-gcc* ports have been marked as i386-only for ages). I'm not
sure if it's possible to tell GNAT where to look for binutils at
runtime.
I have some patches to send to both Adacore and the GCC developers to
add support for FreeBSD amd64.
I decided to use the system binutils because in order for someone to
actually build the port, they have to use bootstrap compiler binaries
provided by me (the gnat-gcc* ports do the same thing) and having those
binaries depend on a moving target like cross-binutils might create even
more complications.
I'll be providing full documentation and build scripts to show how the
bootstrapping compiler was created so if someone feels the need to use
the cross-binutils port, they can.
cheers,
xw
More information about the freebsd-hackers
mailing list