trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: October 2010

Re: [trinity-devel] RPATH vs LD_LIBRARY_PATH

From: Serghei Amelian <serghei@...>
Date: Thu, 7 Oct 2010 17:12:02 +0300
On Thursday 07 October 2010 16:21:32 Serghei Amelian wrote:
> Hello,
>
> I wonder if is not good ideea to set RPATH into Trinity binaries, to
> ${prefix}/lib. In this case Trinity will still working even LD_LIBRARY_PATH
> is not set at all.
>
> Pros? Cons?

Some docs about this subject:

http://wiki.debian.org/RpathIssue
http://www.vtk.org/Wiki/CMake_RPATH_handling
http://en.wikipedia.org/wiki/Rpath_(linking)

I discovered this problem when I tried to compile kdelibs, while arts libs are 
located in /usr/kde/3.5/lib and mcopidl fail to run, because in my 
environment LD_LIBRARY_PATH is not set by default. Of course, packagers can 
setup LD_LIBRARY_PATH in his environment (RPATH will remain optional and it 
can be disabled).

-- 
Serghei