then there's also LD_LIBRARY_PATH, an environment variable that, when set, can add to the search path of the linker. But somehow I'm puzzled that this is about a *subdirectory* of /usr/lib. The linker typically doesn't search there, so you might be facing the problem that some software does an dl("/usr/lib/ao/...") - and you can't fix that by patching the ELF files, since in that case, the library path is a string, not metadata of the ELF file. (Though technically, it might be in the strings section of the ELF, but now it's getting complicated...)
|