Subject: Re: non /usr/lib libraries
To: Daniel Mercer <dmercer@fantoccini.com>
From: Wojciech Puchar <wojtek@chylonia.3miasto.net>
List: netbsd-users
Date: 08/01/2002 17:35:38
>
> In this case:
>
> cc -o program program.o -L/usr/pkg/lib -R/usr/pkg/lib -lreadline -lcurses

works fine! thanks

>
> Adding paths to shared library directories can be
> done by making entries in /etc/ld.so.conf but, I
> think that this isn't considered the Right Thing.
>
> Dan M.
>
> On Thursday, August 1, 2002, at 08:12  AM, 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
> >
> > it then needs to be run with
> >
> > LD_LIBRARY_PATH=3D/usr/pkg/lib ./program
> >
> >
> ------------ Output from gpg ------------
> gpg: Podpis z=B3o=BFony Thu Aug  1 17:22:42 2002 CEST za pomoc=B1 DSA,
> z u=BFyciem klucza o identyfikatorze AFDB2B6F
> gpg: Nie mo=BFna sprawdzi=E6 podpisu: klucz publiczny nie odnaleziony
>
>