cmake and installed binaries

Thiago Macieira thiago at kde.org
Wed Feb 15 14:57:22 CET 2006


David Faure wrote:
>But at the moment, uninstalled binaries link to the libs in the
> builddir, and when installing they still do that - not good...

This is wrong. The installed binary must never RPATH to the development 
dir.

>/> ldd /usr/local/bin/kconfig_compiler| grep kdecore
>        libkdecore.so.4 =>
> /devel/kde/build/4/kdelibs4_cmake/lib/libkdecore.so.4 (0xb7b51000)

CMake has to relink at one time or another: either when installing or when 
you try to run an uninstalled binary. There's no other 100% solution.

LD_LIBRARY_PATH doesn't work on a standard build. But I guess you could 
try to give g++ the option -Wl,--enable-new-dtags by default and see what 
happens and what breaks (that will make LD_LIBRARY_PATH work).

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

5. Swa he géanhwearf tó timbran, and hwonne he cóm, lá! Unix cwæð "Hello, 
World". Ǽfre ǽghwilc wæs glæd and seo woruld wæs fréo.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060215/e6509be3/attachment-0001.pgp 


More information about the Kde-buildsystem mailing list