Subject: Re: library dependency
To: Peter Seebach <email@example.com>
From: Todd Vierling <firstname.lastname@example.org>
Date: 06/02/2000 10:56:54
On Thu, 1 Jun 2000, Peter Seebach wrote:
: >for example, libtiff. when i use link to a dynamic loadable libtiff, i need
: >to add the -rpaths for the jpeg and the zlib as well. is that normal or am
: >i missing something?
: It's mostly normal. The issue is, the loader may not know where to look, and,
: as I understand it, the executable is the only one that can warn the loader
: about paths it needs to look at...
...which is not really normal. In SVR4, rpaths can be specified when
linking a library, as well as an executable.
However, something makes me think I saw this working in NetBSD once(!), on
alpha. This just needs an empirical test... link library1, link dependent
library2 with rpath to library1, and link executable with rpath to library2
only ... then ldd the executable.
-- Todd Vierling (email@example.com)