Subject: Re: non /usr/lib libraries
To: Wojciech Puchar <wojtek@chylonia.3miasto.net>
From: Chris Pinnock <cjep@fawlty.net>
List: netbsd-users
Date: 08/02/2002 11:45:30
On Thu, Aug 01, 2002 at 05:12:46PM +0200, Wojciech Puchar wrote:
> how to link program that needs .so library from /usr/pkg/lib (readline
> that case) so it will know this directory runtime?
>
> when i do
>
> cc -o program program.o -L/usr/pkg/lib -lreadline -lcurses
>
Try adding -Wl,-R/usr/pkg/lib to your cc flags.
best wishes,
Chris