Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Oct 2006 20:06:55 +1000
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Jeffrey Horner <jeff.horner@vanderbilt.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Behavior of run-time linker on 6.1-RELEASE
Message-ID:  <20061006100655.GB941@turion.vk2pj.dyndns.org>
In-Reply-To: <452555CA.10309@vanderbilt.edu>
References:  <452555CA.10309@vanderbilt.edu>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Thu, 2006-Oct-05 13:58:18 -0500, Jeffrey Horner wrote:
>I've noticed that setting the RPATH of a binary will help find libraries 
>that the binary has been linked against, but the RPATH of the binary is 
>ignored when a library itself is linked to another library. Is this 
>expected behavior?

IMHO, this behaviour is far more sensible that the opposite (which
I've run into on another OS).  In my case, I had a perl executable and
was building DBD::Oracle.  The DBD::Oracle module needs to link
against Oracle so it needs an RPATH that points into the Oracle
library.  The logical place for this is the DBD::Oracle module - I
shouldn't need to include the Oracle library into the perl RPATH on
the off-chance that I might want to load a .so that needs an Oracle .so

-- 
Peter Jeremy

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFJiq//opHv/APuIcRAtv2AJ41hrsDMYctyipwxiBeCAdbqkOEJQCcDjR9
knAvOOZW1SqlLb3b/RImBEY=
=EfrJ
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061006100655.GB941>