From d9acf50fb5855c70357b954757967208eeac2b27 Mon Sep 17 00:00:00 2001 From: Lethosor Date: Thu, 19 Feb 2015 11:42:04 -0500 Subject: [PATCH] Pass RTLD_LOCAL to dlopen() May have fixed #205 --- library/PlugLoad-posix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;