Re: Removing duplicate occurences from dependency_libs
- From: Sander Vesik <Sander Vesik Sun COM>
- To: Martin Baulig <martin home-of-linux org>
- Cc: Alexandre Oliva <oliva lsd ic unicamp br>, Thomas Tanner <tanner ffii org>, gnome-2-0-list gnome org, libtool gnu org
- Subject: Re: Removing duplicate occurences from dependency_libs
- Date: Sun, 20 May 2001 17:31:16 +0100 (BST)
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)
One day a tortoise will learn to fly
-- Terry Pratchett, 'Small Gods'
] [Thread Prev