rpaths on linux with kde3 installed
Thiago Macieira
thiago at kde.org
Wed May 24 00:01:31 CEST 2006
Adriaan de Groot wrote:
>-Wl,-rpath,/tmp/bu/lib:/usr/local/lib:/usr/lib
>
>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-buildsystem/attachments/20060524/e7e813b2/attachment.pgp
More information about the Kde-buildsystem
mailing list