RPATH problems in kdelibs
Alexander Neundorf
neundorf at kde.org
Sun Nov 26 22:18:55 CET 2006
On Sunday 26 November 2006 21:57, Thiago Macieira wrote:
> Hello
>
> I have no idea how to solve this problem: the KDE libraries don't have the
> necessary RPATH information built into them. Example:
>
> $ objdump -p ~/KDE4/lib/libkdeui.so.5 | grep RUNPATH
> RUNPATH /usr/local/lib:/home/thiago/obj/troll/qt-main/lib
>
> Since kdeui links to kdecore, the RPATH to kdecore should be present. It
> isn't.
>
> I found this comment in KDE4Macros.cmake, which sheds some light:
> # If RPATH is not explicitely disabled, libraries and plugins are built
> without RPATH, in
> # the hope that the RPATH which is compiled into the executable is good
> enough.
>
> Well, the comment is wrong. Libraries should have rpaths to their
> dependencies.
Thanks for looking into this.
It's very well possible that the comment is wrong, since I'm no RPATH expert
and just wrote down what I observed. I also tried to get some comments about
how it should behave. also on FreeBSD, but without luck.
So if you think libraries should also have the complete RPATH, then this
should be handled exactly like for executables.
One thing: on "make install" the libraries will be relinked with the new
install-RPATH, so this will take some more time.
That's actually one of the reasons why I didn't add the RPATH to the
libraries.
Bye
Alex
--
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org - http://www.kde.org
alex AT neundorf.net - http://www.neundorf.net
More information about the Kde-buildsystem
mailing list