Re: Removing duplicate occurences from dependency_libs



Peter Williams <peter newton cx> writes:

> On 20 May 2001 15:46:39 +0200, Martin Baulig 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.

> 	I thought I'd mention that it seems
> to me that the speed hit is in the
> construction of the list of
> dependencies, not during actual
> linking. If you put "set -x" at the
> top of libtool and link something
> like evolution-mail, you'll see the
> list of dependencies grow larger and
> larger till it takes up almost the
> complete screen.

I did some experimentation with this and found out that the problem
is duplicate libraries in the dependency line for a single .la
file.

If you have this, then the dependency list grows exponentially as
you link subsequent things.

If you don't have this, then duplicates are removed succesfully.

(GTK+ now has all duplicates culled when linking it.)

Regards,
                                        Owen




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]