This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fixed occasional failure to load a custom shared library
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Kevin Buettner <kevinb at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Mon, 9 Oct 2006 20:00:19 -0400
- Subject: Re: [patch] Fixed occasional failure to load a custom shared library
- References: <20060622114016.GA21094@host0.dyn.jankratochvil.net> <20060626180051.0adcce23@ironwood.lan> <20060721183829.GB9150@lace.redhat.com> <20061009201747.GD22848@nevyn.them.org> <20061009225042.GA2481@host0.dyn.jankratochvil.net>
On Tue, Oct 10, 2006 at 12:50:42AM +0200, Jan Kratochvil wrote:
> If you would use `-Wl,-rpath,$ORIGIN' or relative pathname for $LD_LIBRARY_PATH.
> The latter case was testcased in:
> http://sourceware.org/ml/gdb-patches/2006-09/msg00009.html
In my glibc, setting LD_LIBRARY_PATH to a relative path makes no
difference. Things get canonicalized anyway. I also tried with
$ORIGIN. I wonder if the Fedora glibc behaves differently in this
respect.
--
Daniel Jacobowitz
CodeSourcery