On Sat, Sep 05, 2015 at 12:53:10PM +0000, Christian Weisgerber wrote:
> On 2015-09-04, Alexander Bluhm <[email protected]> wrote:
> 
> > In an environment without ld.so.hints, I had the problem that loading
> > libxml2.so failed because it did not find liblzma in /usr/local/lib.
> > Adding that directory to -rpath when linking libxml2.so helps.
> >
> > Is this approach correct?
> 
> Well... do you want to apply a similar change to the hundreds(?)
> of libraries in ports that link to other libraries?  If not, what
> makes libxml2 special?  For instance, libintl won't find libiconv
> in the same situation.
> 
> I think the original idea was that we do NOT use -rpath, but the
> policy hasn't been very clear and not really enforced.

I saw the problem when patching an OpenBSD based appliance, not on
plain OpenBSD.  Some ports libraries have the -rpath, others not.
So I thought missing -rpath might be a bug in libxml2.

But you are right, it does not make sense to "fix" that.  It is
effort without benefit to make all libraries "correct".  I will
make sure that my ld.so.hints it set up correctly.

Thanks for the explanation,

bluhm

Reply via email to