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).