RPATH problems in kdelibs

Alexander Neundorf neundorf at kde.org
Sun Dec 10 23:06:43 CET 2006


On Saturday 09 December 2006 20:57, Thiago Macieira wrote:
...
> I'm still facing this problem and now I have no idea how to solve it.
> kdewidgets is being linked like this:
>
> /usr/bin/c++ -fPIC -O0 -g -W<snip_flags> -fno-exceptions -fno-check-new
> -fno-common -Wl,--fatal-warnings -Wl,--no-undefined -lc -shared
> -Wl,-soname,kdewidgets.so -o ../lib/kdewidgets.so <source_files>
> -L/usr/local/lib -L/home/thiago/obj/kde4/KDE/kdelibs/lib/.
> -L/home/thiago/obj/kde4/KDE/kdelibs/lib
> -L/home/thiago/obj/troll/qt-main/lib -L/lib -lkio -<lots_of_libs>
> -Wl,-rpath,/home/thiago/KDE4/lib
>
> If I modify KDE4Macros.cmake and remove the INSTALL_RPATH "" part from
> KDE4_HANDLE_RPATH_FOR_LIBRARY, I get closer to my goal:
>
> /usr/bin/c++ -fPIC -O0 -g -W<snip_flags> -fno-exceptions -fno-check-new
> -fno-common -Wl,--fatal-warnings -Wl,--no-undefined -lc -shared
> -Wl,-soname,kdewidgets.so -o ../lib/kdewidgets.so <source_files>
> -L/usr/local/lib -L/home/thiago/obj/kde4/KDE/kdelibs/lib/.
> -L/home/thiago/obj/kde4/KDE/kdelibs/lib
> -L/home/thiago/obj/troll/qt-main/lib -L/lib -lkio -<lots_of_libs>
> -Wl,-rpath,/home/thiago/KDE4/lib

Where's the difference between these two ?

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