Some libraries are not found without LD_LIBRARY_PATH mangling

Thiago Macieira thiago at kde.org
Tue Oct 30 09:53:11 GMT 2007


Em Tuesday 30 October 2007 10:22:59 Alexander Neundorf escreveu:
> Hmmm.
> Currently cmake generates -Wl,-rpath arguments which set the RPATH (and I
> think the RUNPATH too). If we simply add -Wl,--enable-new-dtags to the link
> flags, will this magically change the meaning of -Wl,-rpath to set the
> RUNPATH only ?

No.

CMake generates -Wl,-rpath, which sets RPATH but not RUNPATH.

If we add -Wl,--enable-new-dtags, then the very same -Wl,--rpath flag will set 
both RPATH and RUNPATH to the same value.

Locally, I modified my gcc specs file to add the --enable-new-dtags flag 
always to the linker, so I don't have to worry about CMake or qmake support. 
(I routinely change my LD_LIBRARY_PATH to load different libraries in order 
to test regressions)

-- 
  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: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071030/093d8de9/attachment.sig>


More information about the kde-core-devel mailing list