The “global” in RTLD_GLOBAL
is not about where the libraries are installed. It is about whether dlopen() hides their symbols from other shared objects used by the same process.
RTLD_GLOBAL
The object’s symbols are made available for the relocation processing of any other object.
RTLD_LOCAL
The object’s symbols are not made available for the relocation processing of any other object.