Subject: Re: ncurses-1.9.9g Package Installation
To: <>
From: None <mcmahill@mtl.mit.edu>
List: port-i386
Date: 09/16/1999 19:09:32
On Thu, 16 Sep 1999, Thilo Manske wrote:

> On Thu, Sep 16, 1999 at 05:40:46PM -0400, mcmahill@mtl.mit.edu wrote:
> > On Fri, 17 Sep 1999, Graham Jenkins wrote:
> > cc  -o wart ckwart.o  -L/usr/pkg/lib -lncurses -ltermlib -lcrypt
> > 
> > 
> > the -L/usr/pkg/lib tells the linker that it also needs to look in
> > /usr/pkg/lib for libraries, in this case libncurses.a for statically
> > linked or libncurses.so.#.# for a shared lib.
> > 
> > in your program's makefile, you might be able to add the -L/usr/pkg/lib to
> > the LDFLAGS variable depending on how the makefile was written.
> For dynamic linking:
> Isn't "-L/usr/pkg/lib -Wl,-R/usr/pkg/lib" the recommended way?
> 
> At least this will make dynamic linking work on ELF without
> playing with "LD_LIBRARY_PATH"...

you are, of course, right.  

-Dan