[Jack-Devel] Setting rpath while building JACK

David dplist at free.fr
Mon May 16 14:20:19 CEST 2016


On Mon, 16 May 2016 14:07:02 +0200
"marcin at saepia.net" <marcin at saepia.net> wrote:

> I need to make custom build of JACK that will reside in /opt/myjack
> 
> Now I have to use LD_LIBRARY_PATH because without one I get errors
> like this
> 
> /opt/myjack/bin/jack_lsp: error while loading shared libraries:
> libjack.so.0: cannot open shared object file: No such file or
> directory
> 
> I would like to use -rpath linker flag, but I found no clean way to
> use it. I tried to set LDFLAGS and other env vars but waf keeps
> ignoring it.
> 
> Any advice?

Add /opt/myjack/lib to /etc/ld.so.conf or
create a dedicated config file, e.g /etc/ld.so.conf.d/myjack.conf,
with /opt/myjack/lib in it. And then run ldconfig, as root.

This should give system-wide access to the libs you installed
in /opt/myjack/lib.

HTH

-- David



More information about the Jackaudio mailing list