Ludovic Courtès writes: > Federico Beffa <be...@ieee.org> skribis: > >> I'm working on dconf and I had the same problem: the produced binaries >> like dconf-edit, but even shared libraries produced by the build would >> not find their own companions. > > What build system does dconf use? > > Usually there’s no problem for packages that use Libtool (it sets the > RUNPATH automatically), but there’s almost systematically a problem when > CMake is used (we may not be passing the right options or something, as > Andreas notes.)
Our cmake-build-system sets CMAKE_INSTALL_RPATH_USE_LINK_PATH=True, which will add the directory of a library given during link time to the executable or library's rpath. As was noted before, this is not helpful if the package does not put those libraries in the link line. It also sets CMAKE_INSTALL_RPATH to the "lib" directory of the package output. I'd imagine this would help with libraries finding libraries from the same package, but perhaps not. -- Eric Bavier Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html