compiling system binutils as cross tools

xorquewasp at googlemail.com xorquewasp at googlemail.com
Thu May 21 11:55:05 UTC 2009


On 2009-05-21 11:20:21, Robert Watson wrote:
> Not really my area, but if you haven't found "make toolchain" and "make  
> buildenv" then you might want to take a look.  Typically these will be  
> combined with TARGET_ARCH=foo, and in your case foo is 'amd64'.  The 
> former builds the toolchain required for the architecture, and the latter 
> creates a shell environment with paths appropriately munged and 
> environments appropriately set to cross-compile using that chain.  
> Normally the toolchain step is part of our integrated 
> buildworld/buildkernel/etc process, but you can also use it for other 
> things with buildenv.

Thanks, 'make toolchain' looks like it'll work. 'make buildenv' gave me
the paths to the binaries I needed to tell the compiler I'm working on
to use those for cross compilation.

What tangled webs we weave...

cheers,
xw


More information about the freebsd-hackers mailing list