Subject: Re: elf linking
To: None <netbsd-help@netbsd.org>
From: Soren Jacobsen <soren@blef.org>
List: netbsd-help
Date: 04/13/2003 19:59:00
On Mon, Apr 14, 2003 at 12:20:38PM +0930, Ian Grant wrote:
> chikara# ./teapot
> Shared object "libGL.so.1" not found
> [...]
> when I compiled the .c file i used the -L/usr/X11R6/lib flag
> what could have caused this error ?

Add -Wl,-R/usr/X11R6/lib to that and you should be fine.

-- 
Soren Jacobsen