Hi,

On 5 Apr 2001, Alexandre Oliva wrote:
> > before: deplibs="-lfoo -lbar -lfoo -lfoo -lbar -lbar -lfoo"
> > after: deplibs="-lbar -lfoo -lbar -lfoo"
>
> > This cuts down on all the extraneous stuff *safely*, i think.
>
> It can't be proven to be safe.  Consider that libfoo and libbar are
> static, such that:

> If you remove the first -lfoo, you'll get an `f4 undefined' error.
>
> It's always safe to remove duplicates of a library when they're
> consecutive, though.

I thought this thing was only a typo in edwards code (I think so, because
he forgot to add the first library _at all_ which clearly is wrong anyway,
so I didn't mention it.  The loop itself works as intended and removes
only consecutive multiple libs)


Ciao,
Michael.


_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool

Reply via email to