[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Removing duplicate occurences from dependency_libs
From: |
Sander Vesik |
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 <address@hidden> 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
> address@hidden (private)
> address@hidden (work)
>
Sander
One day a tortoise will learn to fly
-- Terry Pratchett, 'Small Gods'
Re: Removing duplicate occurences from dependency_libs, Havoc Pennington, 2001/05/20