Building _statically linked_ crosscompiler toolchain.

David Daney ddaney@avtrex.com
Fri Jun 8 00:19:00 GMT 2007


John Carter wrote:
> Ok, so I can build the latest gcc,binutils i686 linux hosted, embedded
> sparc-elf newlib target crosscompiler tool chain.
> 
> Great.
> 
> Unfortunately some of the team (bless their smelly sockses) are on
> different Linux distributions, older distributions etc. Thus different
> shareable libraries.
> 
> ie. The tools don't run on many of my colleagues machines.
> 
> Obviously the answer is to statically link the tools.
> 
> The question is "What is The One True Way (or any blooming way) to
> build a _completely_ statically linked gcc crosscompiler toolchain?"
> 

glibc does not work very well statically linked.  So I don't think that 
is a good idea.

Perhaps you should build the toolchain on the oldest distribution that 
will have to be supported.  An alternative is to have a build for each 
incompatible host system.

David Daney



More information about the Gcc-help mailing list