Pass RTLD_LOCAL to dlopen()

May have fixed #205
develop
Lethosor 2015-02-19 11:42:04 -05:00
parent 962df78ff0
commit d9acf50fb5
1 changed files with 1 additions and 1 deletions

@ -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;