Browse Source

Explicitly specify RTLD_LOCAL for plugin loading.

tags/v1.1.6
Andrew Belt 2 years ago
parent
commit
3f9b22e5b4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/plugin.cpp

+ 1
- 1
src/plugin.cpp View File

@@ -71,7 +71,7 @@ static InitCallback loadLibrary(Plugin* plugin) {
throw UserException(string::f("Failed to load library %s: code %d", libraryFilename.c_str(), error));
}
#else
void* handle = dlopen(libraryFilename.c_str(), RTLD_NOW);
void* handle = dlopen(libraryFilename.c_str(), RTLD_NOW | RTLD_LOCAL);
if (!handle) {
throw UserException(string::f("Failed to load library %s: %s", libraryFilename.c_str(), dlerror()));
}


Loading…
Cancel
Save