Removing duplicate occurences from dependency_libs
Hi, somewhere between libtool 1.3.x and 1.4, you did the following: 1999-12-15 Thomas Tanner <[EMAIL PROTECTED]> * ltmain.in: don't remove multiple occurences from dependency_libs of a library, otherwise many dependencies would get lost If you have a "complicated" dependency setup, this will slow down linking in a very extreme way (it is more than 5 times slower for me) because I get libraries like -lm or -ldl listed over 30 times in the dependency_libs. Is it possible to add an argument to libtool to get back the old behavior, for instance -unique-dependency-libs ? Here's a patch for this: diff -- Martin Baulig [EMAIL PROTECTED] (private) [EMAIL PROTECTED] (work)
Re: Removing duplicate occurences from dependency_libs
Alexandre Oliva <[EMAIL PROTECTED]> writes: > On May 20, 2001, Martin Baulig <[EMAIL PROTECTED]> wrote: > > > If you have a "complicated" dependency setup, this will slow down linking > > in a very extreme way (it is more than 5 times slower for me) because I get > > libraries like -lm or -ldl listed over 30 times in the dependency_libs. > > > Is it possible to add an argument to libtool to get back the old behavior, > > for instance -unique-dependency-libs ? > > Just make sure no library appears explicitly more than once in the > dependence list of any library or program, and you'll get exactly what > you want. This does not work. Imagine the following scenario: liba.la - depends on -lm libb.la - depends on -lm libc.la - depends on -la and -lb You'll get -l twice in libc.la. -- Martin Baulig [EMAIL PROTECTED] (private) [EMAIL PROTECTED] (work) ___ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool
Re: Removing duplicate occurences from dependency_libs
Alexandre Oliva <[EMAIL PROTECTED]> writes: > That's why I wrote *explicitly*. You shouldn't get -lm duplicated in > this case. If you do, it's a bug. You should only get it duplicated > if it appeared more than once in the dependence list of liba.la or > libb.la; if it appears only once it both of them, only the last one > should prevail. Well, that's what didn't work for me. I'll debug it later on. -- Martin Baulig [EMAIL PROTECTED] (private) [EMAIL PROTECTED] (work) ___ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool