Merge pull request #558 from DFHack/dlopen-rtld-local

Pass RTLD_LOCAL to dlopen()
develop
Lethosor 2015-02-19 11:44:05 -05:00
commit 899ab796b4
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;