[uClibc] Use non-uclibc cross toolchains - possible?

Erik Andersen andersen at codepoet.org
Fri Aug 15 18:41:47 UTC 2003


On Fri Aug 15, 2003 at 11:13:43AM -0700, Jun Sun wrote:
> 
> I have a glibc-based cross toolchain installed.  I wonder if I can
> just use this to build uclibc and the whole root fs.
> 
> I understand by default glibc pathes are hardcoded in gcc.  I wonder
> if there is way (through command line options, for example) to force
> gcc look for uclibc pathes.
> 
> Is this possible?  Has anybody tried this?

Yes this is possible.  See the gcc wrapper toolchain that is
compiled by default when building uClibc.  Just do a 'make
install' and you will see this wrapper toolchain.

There are some possible problems however, since binutils will
leak libraries linked with glibc into your link if it cannot find
uClibc linked libraries,

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list