Re: Removing duplicate occurences from dependency_libs
- From: Alexandre Oliva <oliva lsd ic unicamp br>
- To: Martin Baulig <martin home-of-linux org>
- Cc: Thomas Tanner <tanner ffii org>, gnome-2-0-list gnome org, libtool gnu org
- Subject: Re: Removing duplicate occurences from dependency_libs
- Date: 20 May 2001 12:35:56 -0300
On May 20, 2001, Martin Baulig <martin home-of-linux org> wrote:
> Alexandre Oliva <oliva lsd ic unicamp br> writes:
>> On May 20, 2001, Martin Baulig <martin home-of-linux org> 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.
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.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva {cygnus com, redhat.com}
CS PhD student at IC-Unicamp oliva {lsd ic unicamp br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]