On Feb 15, 2000, Stephan Kulow <[EMAIL PROTECTED]> wrote:
>> It does make sense if another, say libx, possibly incomplete, links
>> with liba too, and pulls symbols from it that are also defined in
>> libb. If libtool omits the first `-la' in `-lx -la -lb -la', the
>> executable will get symbols from -lb instead of from -la.
> I don't get it. If libb and liba define the same symbols, static
> linking will fail anyway.
Hmm, I think you're right. It's possible to override a library symbol
when you link an object, but symbol clashes in libraries should result
in hard errors.
> If they define disjunct sets, libx will pull from liba or from libb
> independent of the order. I must miss a point.
No, I did.
In any case, it might be possible, even though extremely unlikely and
of very bad taste, that the symbols of liba that are pulled by libx
depend on libb. In this case, omitting the first occurrence of -la
would cause the symbols in libb to not be resolved.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaranį
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me