rpaths on linux with kde3 installed

Thiago Macieira thiago at kde.org
Tue May 23 23:01:31 BST 2006

Adriaan de Groot wrote:
>then the right library -- from the build dir -- *is* picked up. But this
>doesn't seem like a good solution, since it embeds a build dir into the
>executable which might not be around (or might be hi-jacked) later. How
> to work around this?

There's -Wl,--rpath-link for exactly that kind of problems. But since this 
is a library being linked (not just being loaded as a dependency), the 
build dir path should be in -L and the library should have a different 
soname than the one installed in /usr/lib

Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
  thiago.macieira (AT) trolltech.com     Trolltech AS
    GPG: 0x6EF45358                   |  Sandakerveien 116,
    E067 918B B660 DBD1 105C          |  NO-0402
    966C 33F5 F005 6EF4 5358          |  Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060524/e7e813b2/attachment.sig>

More information about the kde-core-devel mailing list