Subject: Re: ncurses-1.9.9g Package Installation
To: None <mcmahill@mtl.mit.edu>
From: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: port-i386
Date: 09/16/1999 23:58:52
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"...
-- 
Dies ist Thilos Unix Signature! Viel Spass damit.