On Thu, Nov 06, 2014 at 05:09:35PM -0600, Eric Bavier wrote:
> As I understand things, cmake might relink executables during
> installation with the appropriate rpath for the installation directory.
> It may also patch the executables rpath in place, replacing the
> "::::..." string above with the actual rpath, presumably containing the
> directories of the .so's.  Can you tell if any of that is taking place?

I do not think it could possibly patch in place, as the ":...:" string is
too short.

Before installing, there is another linking phase. But it also has the
":...:" rpath.

Then there is
-- Set runtime path of 
"/gnu/store/w931dmcqpkb3sdcxnjpqxdn7qykh3qbr-ktouch-4.14.2/bin/ktouch" to 
"/gnu/store/w931dmcqpkb3sdcxnjpqxdn7qykh3qbr-ktouch-4.14.2/lib"
which corresponds to
   (string-append "-DCMAKE_INSTALL_RPATH=" out "/lib")

This is for the build where I explicitly gave "-lkdeclarative", and where the
final rpath does contain the path to the kde libraries (but not the path to
the qt libraries, as these were not given with -l, but directly as .so on
the linking line). So the log does not show at which point and how the rpath
is set.

Andreas


Reply via email to