Subject: Re: Why do I need to add an entry into ld.so.conf?
To: Phil Pereira <phil@bsdnexus.com>
From: None <ww@styx.org>
List: tech-net
Date: 03/23/2005 14:48:46
On Wed, Mar 23, 2005 at 07:40:02PM +0000, Phil Pereira wrote:
> 
> My question : If I *never* need to add anything to ld.so.conf
> to compile an app in pkgsrc, why did I need to add it for a program
> I compiled myself?  What am I missing? Or what did I get wrong?

Not sure about this particular app. What are the linker flags that
were used to build it? There should be -L/usr/X11R6/lib and 
-R/usr/X11R6/lib (or -Wl,--rpath,/usr/X11R6/lib). If neither of
those last two are present, the full path to the shared library
is not encoded into the resultant binary and you will need to use
the method that you describe or the LD_LIBRARY_PATH environment
variable to tell ld.so where to find the shared libraries that
are needed.

Hope this helps,
-w
-- 
Communication is the nervous system of internationalism and human solidarity
La communicación es el tejido nervioso del internacionalismo y la solidaridad
				J.C. Mariátegui, Lima, 1923