Subject: Re: non /usr/lib libraries
To: None <netbsd-users@netbsd.org>
From: Staffan Thomen <duck@multi.fi>
List: netbsd-users
Date: 08/03/2002 22:00:24
On Fri, 2 Aug 2002 11:45:30 +0100 "Chris Pinnock" <cjep@fawlty.net>
wrote:

> 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.

 ITYM -Wl,-rpath ... ?

 Regards,

-- 
Staffan Thomén (0x00C37E1F)