Thanks again for the reply. See below.

On Thu, Jul 24, 2008 at 02:01:55PM +1000, Greg Ungerer wrote:
> >
> >Your tools worked fine for a ARM7TDMI board with the latest uCLinux test
> >dist. Thanks.
> >
> >However, I am still fighting a couple of issues trying to follow your
> >instructions and building the tools from source. Before I dig in dark
> >any futher, here are a couple of possibly dumb questions:
> >
> >* Your instructions are building the tools with glibc, but uCLinux
> >  is using uclibc. How does that work out?
> 
> Works out fine :-)
> With proper option settings the libs in the toolchain are not used.
> And uClinux dist is setup to do the right things and not rely on
> the toolchain libs.
> 
> The only reason I even bother to actually generate a libc with
> the toolchain is so that it can contain the c++ bits required
> (can't compile those in gcc without a compiled libc present).
> 
> For a host toolchain it makes sense to have a libc present.
> For cross compiling it is much less useful in my opinion.
> And I for one am not going to change my toolchain just to
> compile for targets using different libraries (and library versions :-)
> 

Hmm, that is useful to know. Suffice to say that if I just need
an ARM cross C compiler to work with uclinux, the gcc produced in your
first step one would be enough?

> >  Wouldn't your tool have
> >  issues in compiling userland since it assumes glibc and probably
> >  including glibc headers instead of uclibc?
> 
> It is only an issue if you want to compile stand alone apps (not within
> a framework like uClinux-dist). In that case you would need to either
> compile/link static, or put the toolchain libs on the target as well.
> 

OK. I will take another look to see what options UClinux-dist used to get
C library straight.

Cheers.

Jun
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to