Subject: Re: non /usr/lib libraries
To: Wojciech Puchar <>
From: Nick Hudson <>
List: netbsd-users
Date: 08/01/2002 16:23:05
On Thursday 01 August 2002 4:12 pm, 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