Subject: Re: Libraries in /usr/pkg/lib
To: None <Knappe@tu-harburg.de>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: port-i386
Date: 04/11/2002 16:28:27
Frank Knappe said:
> 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
[...]
> What do I have to do?

You need to add the following flag to your linker flags:
 -Wl,-R/usr/pkg/lib

Otherwise, you can fudge it by adding /usr/pkg/lib to /etc/ld.so.conf, but
it's not the recommended way to deal with this.

Hope this helps,
Jared