Subject: Re: ld.so.conf
To: Jukka Salmi <jukka-netbsd@2003.salmi.ch>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 07/18/2003 06:46:14
On Fri, 18 Jul 2003, Jukka Salmi wrote:

> $ bbdate
> Shared object "libSM.so.6" not found
>
> A 'echo /usr/X11R6/lib >>/etc/ld.so.conf' solved my problem, but I'm not sure
> whether that's the right way to do it...

See the website Documentation.

http://www.netbsd.org/Documentation/software/ which links to
http://www.netbsd.org/Documentation/software/compiling.html which links to
http://www.netbsd.org/Documentation/elf.html#rpath

For example:
  -Wl,-R/usr/X11R6/lib

When you build via pkgsrc, it does this for you. (Please consider adding
bbdate.)

Searching for "rpath ld.so.conf" at www.netbsd.org may give you some other
examples.

   Jeremy C. Reed
   http://bsd.reedmedia.net/