Andreas Enge <andr...@enge.fr> writes: > As usual, the libraries and binaries are not explicitly linked with the > libraries they depend on. So in a context where the input libraries are not > in /usr/lib, executing binaries fails. > > In my private branch I also tried to compile a few KDE packages. The same > problem everywhere: Unless I set an LD_LIBRARY_PATH, they do not find the > necessary KDE and Qt libraries. I think we need a more general solution, > as also witnessed by this:
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. Initially I did set LD_LIBRARY_PATH to resolve the problem. However, after setting #:configure-flags ;; Set the correct RUNPATH in binaries. (list (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")) at build time, everything was working fine without having to set LD_LIBRARY_PATH. That is not in dconf and not in packages build against dconf's libraries. Regards, Fede