Subject: non /usr/lib libraries
To: None <netbsd-users@netbsd.org>
From: Wojciech Puchar <wojtek@chylonia.3miasto.net>
List: netbsd-users
Date: 08/01/2002 17:12:46
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

it then needs to be run with

LD_LIBRARY_PATH=/usr/pkg/lib ./program