forked from OSchip/llvm-project
open plugins with RTLD_GLOBAL, pointed out by Bram Adams.
llvm-svn: 53385
This commit is contained in:
parent
d977c07680
commit
2e24e0ca68
|
@ -61,7 +61,7 @@ DynamicLibrary::~DynamicLibrary() {
|
|||
|
||||
bool DynamicLibrary::LoadLibraryPermanently(const char *Filename,
|
||||
std::string *ErrMsg) {
|
||||
void *H = dlopen(Filename, RTLD_LAZY);
|
||||
void *H = dlopen(Filename, RTLD_LAZY|RTLD_GLOBAL);
|
||||
if (H == 0) {
|
||||
if (ErrMsg)
|
||||
*ErrMsg = dlerror();
|
||||
|
|
Loading…
Reference in New Issue