Subject: Re: elf -current .so build/install/rt linker probs
To: Frederick Bruckman <fb@enteract.com>
From: Matt Thomas <matt@3am-software.com>
List: current-users
Date: 04/03/2000 12:04:21
At 10:05 AM 4/3/00 , Frederick Bruckman wrote:
>On Sun, 2 Apr 2000, NJ Verenini wrote:
>
> > It manifests primarily with GNU software that builds .so with
> > libtool...executables linked against shared objects in temporary build
> > dirs (example: ../somedir/.libs/libfoo.so) seem to not understand when
> > that .so is available via LD_LIBRARY_PATH. Hence, after installing app
> > into /usr/local/bin and libfoo.so into /usr/local/lib, we get something
> > like this:
>
>It's not only ELF--a.out can encode run-time paths, too. The problem
>seems to be that ld{,_elf}.so interprets relative paths for shared
>libraries as relative to the _current_ _directory_, rather than
>relative to the _executable_. Please verify.

Of course it's relative to the current directory.  The
loader doesn't even know the location of the executable.
-- 
Matt Thomas               Internet:   matt@3am-software.com
3am Software Foundry      WWW URL:    http://www.3am-software.com/bio/matt/
Cupertino, CA             Disclaimer: I avow all knowledge of this message