[uClibc]m68k-elf tools and uClibc.

Erik Andersen andersen at lineo.com
Wed Jul 11 03:47:24 UTC 2001


On Wed Jul 11, 2001 at 01:43:27PM +1000, David McCullough wrote:
> 
> Jivin Erik Andersen lays it down ...
> > On Wed Jul 11, 2001 at 01:05:28PM +1000, David McCullough wrote:
> > > 
> > > Ok,  the problem is with the weak_alias macro,  I have fix that I think is
> > > not going to cause anyone pain :-)
> > > 
> > > Basically weak_alias declares the function and gcc thinks it's different
> > > to the prototype in another file.  Most likely the parameters are causing
> > > the error because "typeof" cannot do parameters to functions (i think),
> > > 
> > > My current workaround will be to add a ASM_WEAK_ALIASES config option
> > > to cover this case,  sound reasonable ?
> > 
> > How about this instead?  Could you check if this fixes it?
> 
> That is effectively what I have done,  and it does fix it.  My version
> looked like:
> 
> 	#define weak_alias(name, aliasname) \
> 		asm(".global " #name ";.weak " #aliasname ";" #aliasname "=" #name ";");
> 
> Seems to have done the right thing.  Full build of the tools completed.

k.  I'll commit that bit.

> I also want to define __BEGIN_DECLS and __END_DECLS for the C++ libs.
> Is there a reason we don't do this.  We could make it an option ?
> You cannot use link against uClibc with C++ unless these are set
> appropriately,  you get lots of unresolved symbols,

Well in some places it probably just got lost, in other spots
(esp in header files that are not at all derived from glibc).
it was never there.  Please feel free to commit such changes as 
needed...

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the uClibc mailing list