Subject: Re: Libraries in /usr/pkg/lib
To: Frank Knappe <knappe@tu-harburg.de>
From: Andrew Gillham <gillham@vaultron.com>
List: port-i386
Date: 04/11/2002 12:27:02
On Thu, Apr 11, 2002 at 09:02:49PM +0200, Frank Knappe wrote:
>
> The compilation was succesful, but when I want to start one of the
> programs, I get the following error:
> trinity: {51} ./refdba
> Shared object "libreadline.so.4" not found
>
> trinity: {52} ldd ./refdba
> ./refdba:
> -lreadline.4 => not found
> -ltermcap.0 => /usr/lib/libtermcap.so.0
> -lc.12 => /usr/lib/libc.so.12
>
> readline-4.2 is installed (in /usr/pkg/lib)
You need to add "-Wl,-R/usr/pkg/lib" to your LDFLAGS. This will store
the library path into the ELF binary.
-Andrew