Re: Removing duplicate occurences from dependency_libs



On 20 May 2001, Martin Baulig wrote:

> Alexandre Oliva <oliva lsd ic unicamp br> writes:
> 
> > 
> > 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.
> 

If you always linked libraries against their dependencies the situation -
or even the need for linking N-th level depenencies would not occour. In
fact, you don't then even need to care about indirect depenencies.

Or are there broken ld.so-s that wouldn't support this?

> -- 
> Martin Baulig
> martin gnome org (private)
> baulig suse de (work)
> 

	Sander

One day a tortoise will learn to fly
	-- Terry Pratchett, 'Small Gods'





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