Re: shared libraries
martin f krafft <firstname.lastname@example.org> schrieb:
> also sprach Frank Küster <email@example.com> [2004.12.08.1026 +0100]:
>> And it is this last step in which the shared library needs to be
>> used, while it is still not installed. How could a linker call
>> help here?
> I can't figure it out right now, but /lib/ld-linux.so can be told
> which libraries to use explicitly. This is better than
> $LD_LIBRARY_PATH because it is more granular.
,---- ld.so(8) ----
| A whitespace-separated list of additional, user-specified, ELF
| shared libraries to be loaded before all others. This can be used
| to selectively override functions in other shared libraries. For
| setuid/setgid ELF binaries, only libraries in the standard search
| directories that are also setgid will be loaded.
Although we do not want to override only single functions, this might be
a better choice here. I don't know how much this will actually change,
however, since in the directories that would be given to LD_LIBRARY_PATH
there would be only one shared library - the one alternatively specified
Inst. f. Biochemie der Univ. Zürich