The linker doesn't -
But the loader will, I have dozens of /usr/lib/* directories on my Linux distribution install.
The loader's places to search are listed in /etc/ld.so.conf (or /etc/ld.so.conf.d depending) and the paths to be searched are in the binary /etc/ld.so.cache (which is built by the ldconfig command).
But /etc/ld.so.conf(.d) is in the Amazon image, likely to be replaced by any update.
(*) The fact that the linker and the dynamic loader are both referred to as: 'ld' can confuse mere humans.
|