port molfile plugin reader to platform namespace

This commit is contained in:
Axel Kohlmeyer
2021-10-04 22:40:40 -04:00
parent ee594a879b
commit 0bdc6d47e0
3 changed files with 37 additions and 239 deletions

View File

@ -527,7 +527,7 @@ void *platform::dlsym(void *handle, const std::string &symbol)
// open a shared object file
void *platform::dlopen(const std::string &fname)
{
return ::dlopen(fname.c_str(), RTLD_NOW);
return ::dlopen(fname.c_str(), RTLD_NOW | RTLD_GLOBAL);
}
// close a shared object