GNOME Bugzilla – Bug 781527
build: Add rpath on mutter's private library directory to some more libraries
Last modified: 2017-04-20 17:45:56 UTC
I tried to build gnome-shell in jhbuild on Ubuntu and it failed like this. What do you think of this fix? It's a bit annoying that `-rpath' doesn't work, because that is used elsewhere in the file, but this fixes it for me. Maybe you know of a different way?
Created attachment 350118 [details] [review] build: Add rpath on mutter's private library directory to some more libraries The build may fail with: [...]/src/tmp-introspectodvrhpz5/.libs/Shell-0.1: error while loading shared libraries: libmutter-clutter-0.so: cannot open shared object file: No such file or directory because of missing RPATH/RUNPATH on some libraries meaning the dynamic linker can't find libmutter-clutter-N.so. Pass this to LDFLAGS so that it's added and found. (-R is needed rather than -rpath because there's already a -rpath passed in by automake and we get "libtool: link: warning: ignoring multiple `-rpath's for a libtool library". Tip from https://lists.gnu.org/archive/html/libtool/2008-11/msg00008.html.)
Assuming this is a duplicate of bug 768781. *** This bug has been marked as a duplicate of bug 768781 ***
Looks like it. I searched and didn't find that. Maybe someone could review the patch there then?