O/H Alexander Neundorf ??????:
On Wednesday 09 July 2008, George Petasis wrote:
Hi all,

I am trying to build a shared library under linux, with
INSTALL_RPATH_USE_LINK_PATH ON. When the library is built, -Wl,-rpath,...
is added to the compiler flags. Also, I can see the rpath of the built with
"readelf -d".
But the installed shared library has no rpath, and "readelf -d" does not
show any rpath. Why is rpath information removed during installation?
How can I avoid this?

cmake 2.4 or 2.6 ?
They handle this differently. In 2.4 the executable is linked again with the new RPATH, in 2.6 the new RPATH is patched into the existing executable.
What is thre RPATH of the not-installed executable ?

Alex
Dear Alex,

I am using cmake 2.6-patch0. And my target is a shared library, not an executable. The RPATH of the non-installed .so file contains 3 directories, separated with ":". The installed one has no RPATH section, when examined with readelf. And of course does not work, unless tweaking LD_LIBRARY_PATH.

George
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to