From kde-buildsystem Sun Nov 26 21:18:55 2006 From: neundorf () kde ! org (Alexander Neundorf) Date: Sun, 26 Nov 2006 21:18:55 +0000 To: kde-buildsystem Subject: RPATH problems in kdelibs Message-Id: <200611262218.55872.neundorf () kde ! org> X-MARC-Message: https://marc.info/?l=kde-buildsystem&m=116644632433657 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