Jan Engelhardt <[email protected]> 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 ([email protected]) <http://www.eyrie.org/~eagle/>
