RPATH problems in kdelibs

Alexander Neundorf neundorf at kde.org
Mon Nov 27 00:17:39 CET 2006


Hi Thiago, 

On Sunday 26 November 2006 23:02, Thiago Macieira wrote:
> Alexander Neundorf wrote:
> >That's actually one of the reasons why I didn't add the RPATH to the
> >libraries.
>
> Regardless of whether you added or not, they had RPATH (as my examples
> showed). They were Qt's library dir, plus /usr/local/lib and /lib (but
> not /usr/lib). Can you care to guess where those paths came from?

Yes, I can care to guess.
Btw. if you search for "RPATH" in FindKDE4Internal.cmake and KDE4Macros.cmake 
you will find everything related to RPATH handling for KDE. So it's not that 
hard to find out. It's even completely commented.

> By the way, I've also found this weird code in FindKDE4Internal.cmake:
> # also use /usr/local by default under UNIX, including Mac OS X
> if (UNIX)
>    link_directories(/usr/local/lib)
>    set( _KDE4_PLATFORM_INCLUDE_DIRS /usr/local/include )
>
> Why is that being added?

What is so weird about /usr/local/ ?
It's is from when I started with cmake for KDE, I think it can be removed now, 
but actually it also doesn't hurt, at least nobody complained until now.

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