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

Attachment: pgpBdNxy66i5K.pgp
Description: PGP signature

_______________________________________________
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem

Reply via email to