From a separate question, and other articles on the subject, it appears that additional library paths defined by ld.so.conf.d
will always be resolved (i.e. in the case of a name clash, such as when overriding a system library), before any libraries supplied via /lib
or /usr/lib
.
Is it possible to, via ld.so.conf.d
or some other mechanism, to create a system-wide path where libraries can be resolved, but at the lowest/latest possible resolution level? For example, I'd like libraries in /ParanoidAndroid/
to be resolved, but I'd like that path to be the last place searched for them (i.e. prioritize the libraries in /lib
and /usr/lib
over the libraries stored in /ParanoidAndroid/
), so the lookup order is now:
- Directories from LD_LIBRARY_PATH;
- Directories from /etc/ld.so.conf;
- /lib;
- /usr/lib.
- /ParanoidAndroid;