kmyunittest.shell doesn't use local libs

Thiago Macieira thiago at kde.org
Tue Dec 4 20:57:17 CET 2007


David Faure wrote:
>objdump -p kdirmodeltest | grep PATH
>  RPATH      
> /d/kde/inst/kde4/lib:/d/kde/src/4/qt-copy/lib:/d/kde/inst/kde4/lib
>
>And now I can't remember: since RPATH has more priority over
> LD_LIBRARY_PATH, how could those .shell wrapper scripts ever work at
> all?

RPATH does *not* have priority over LD_LIBRARY_PATH. RPATH overrides it.

You need RUNPATH for that to work. And your grep shows you don't have it. 
Blame your distribution for not enabling a 9-year-old flag in your 
linker. I've been complaining to mine for almost a year now and appears 
they've finally decided to turn it on. 

See: http://qa.mandriva.com/show_bug.cgi?id=28465

We should turn the new dtags on by default. Just add the linker flag (to 
gcc) -Wl,--enable-new-dtags and be done with it.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20071204/77e1d76d/attachment.pgp 


More information about the Kde-buildsystem mailing list