Running Xorg fails with: /usr/libexec/ld-elf.so.2: Shared object "libfontenc.so.1" not found, required by "libXfont.so.1" Because libXfont.so.1 didn't have the RPATH set with the needed shared library runtime path. I see that several libraries do have correct RPATH set, but several do not. I began looking at the configure.ac and Makefile.am, but I am not sure what causes some packages to add the -Wl,--rpath -Wl,/home/reed/xorg/lib (for my platform and location). I posted about this to the xorg list but didn't get feedback. This was on DragonFly with libtool 1.5.22. I will try on a Linux system also -- maybe my problem is not in the modular built itself, but the libtool use. Or if it is a problem, then teach me and I will fix this.
Note that e.g. Debian policy forbids rpath, so its usage must not be hardcoded.
I learned this is a bug in libtool specifically on the DragonFly platform. I will make sure the fixes get there in libtool.m4 instead.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.