kmyunittest.shell doesn't use local libs
David Faure
faure at kde.org
Tue Dec 4 19:20:01 CET 2007
The whole point of the kfoo.shell wrapper scripts is to use the libs from the build dir
instead of the installed libs. However it doesn't work (anymore?)... I wonder what changed...?
ldd ./kdirmodeltest | grep kio
libkio.so.5 => /d/kde/inst/kde4/lib/libkio.so.5 (0xb7638000)
LD_LIBRARY_PATH=/d/kde/build/4/kdelibs/lib/./:/d/kde/inst/kde4/lib:/d/kde/build/4/kdelibs/lib/.:/d/kde/src/4/qt-copy/lib
(copy-pasted from kdirmodeltest.shell)
ldd ./kdirmodeltest | grep kio
libkio.so.5 => /d/kde/inst/kde4/lib/libkio.so.5 (0xb7638000)
objdump -p kdirmodeltest | grep PATH
RPATH /d/kde/inst/kde4/lib:/d/kde/src/4/qt-copy/lib:/d/kde/inst/kde4/lib
And now I can't remember: since RPATH has more priority over LD_LIBRARY_PATH, how could those .shell wrapper scripts ever work at all?
Still, if make test launches the .shell scripts by default (does it?) then we don't really need rpaths in test programs, do we?
(Otherwise we could use the new ldflags which allow LD_LIBRARY_PATH to override the compiled-in paths, not sure what's the status with that)
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the Kde-buildsystem
mailing list