diff --git a/library/PlugLoad-posix.cpp b/library/PlugLoad-posix.cpp index 25bb4170a..e612ccb74 100644 --- a/library/PlugLoad-posix.cpp +++ b/library/PlugLoad-posix.cpp @@ -26,7 +26,7 @@ namespace DFHack DFLibrary * OpenPlugin (const char * filename) { dlerror(); - DFLibrary * ret = (DFLibrary *) dlopen(filename, RTLD_NOW); + DFLibrary * ret = (DFLibrary *) dlopen(filename, RTLD_NOW | RTLD_LOCAL); if(!ret) { std::cerr << dlerror() << std::endl;