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 Nick