On Apr  5, 2001, "edward" <[EMAIL PROTECTED]> 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:

libfoo defines f1, that calls f2
libbar defines f2, that calls f3
libfoo defines f3, that calls f4
libbar defines f4, that calls f5
libfoo defines f5

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.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

Reply via email to