automake
[Top][All Lists]
Advanced

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

Re: Effects of some references to other libraries in a shared library


From: Russ Allbery
Subject: Re: Effects of some references to other libraries in a shared library
Date: Sun, 03 May 2009 16:30:50 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Jan Engelhardt <address@hidden> writes:
> On Sunday 2009-05-03 23:32, Gerald I. Evenden wrote:

>> In a shared library there are about 8 routines out over 100 that
>> refer to libgsl and libpthread.  A frequent situation may arise where
>> an application program has no need for using the 8 procedures
>> infected with other library needs.

>> At the current time, when I try to link such a program I get a
>> failure unless I add all the references to the additional
>> libraries---even though they are not employed by the program in any
>> manner.

> Then something is wrong in your setup, because I do not need to list
> all indirect libraries. The only exception is when dealing with
> non-libtooled static libraries that have poor subobject management.

This does depend on the platform.  Modern ELF platforms support
transitive shared library dependencies, but some non-ELF platforms
don't.

-- 
Russ Allbery (address@hidden)             <http://www.eyrie.org/~eagle/>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]