On Feb 15, 2000, Stephan Kulow <[EMAIL PROTECTED]> wrote:

> Alexandre Oliva wrote:
>> 
>> On Feb 14, 2000, Stephan Kulow <[EMAIL PROTECTED]> wrote:
>> 
>> > Alexandre Oliva wrote:
>> >>
>> >> On Feb 14, 2000, Stephan Kulow <[EMAIL PROTECTED]> wrote:
>> >>
>> >> > 2) remove doubled base libraries to libraries.
>> 
>> >> This can't be done in general.  It has already been debated to death
>> >> in this mailing list.  Please search the archives.
>> 
>> > I'm very much aware of these discussions. But mine are all -no-undefined
>> > and that isn't the general case.
>> 
>> Why would -no-undefined make any difference in this case?

> When I remember right, the discussions were about -la -lb -la
> where they satisfy each other's symbols. You didn't want to 
> forbid that, which is ok. But my -lb says it's completly defined,
> so basicly every library libb depends on doesn't make any sense
> _before_ -lb including libb itself.

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.

This all assumes -la is a static library.  Should it be shared, we
could hopefully drop multiple occurrences thereof, keeping only the
last one.

-- 
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

Reply via email to