[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libmoto PowerPC-optimized math library?



Quoting "C.M. Connelly" <c@eskimo.com>:

> "MD" == Michel Daenzer <daenzerm@student.ethz.ch>
> 
>    MD> I've just replaced -lm in the Makefiles by -lmoto, and I've
>    MD> noticed that the binary is still dynamically linked against
>    MD> libm - is there anything else I have to do for libmoto to
>    MD> be used?
> 
> The README file that accompanies libmoto says that you should use
> it by adding ``-lmoto'' *before* the ``-lm''.  The order is
> important: the linker loads functions from libraries in the order
> that it finds them, and ignores duplicate functions.  
> 
> You still need ``-lm'', too: libmoto only specifies a subset of
> the functions provided by the math library, and if the linker
> doesn't find the functions it needs, it will blow up.

AFAIK, this is useless because linking to libc _automatically_ links to libm. I 
think this is from the recent libc or ld...
Anyway we might better drop the whole idea, except if someone steps forward to 
re-do the whole libmoto in powerpc assembly with the source available. (a book, 
docs ?)


/Hadess
http://hadess.net



Reply to: