From 2e24e0ca68a99e94eb30267ca49f1a238e42f590 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 10 Jul 2008 00:52:20 +0000 Subject: open plugins with RTLD_GLOBAL, pointed out by Bram Adams. llvm-svn: 53385 --- llvm/lib/System/DynamicLibrary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/System/DynamicLibrary.cpp') diff --git a/llvm/lib/System/DynamicLibrary.cpp b/llvm/lib/System/DynamicLibrary.cpp index 572ba496e19..5e3b6cb5651 100644 --- a/llvm/lib/System/DynamicLibrary.cpp +++ b/llvm/lib/System/DynamicLibrary.cpp @@ -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(); -- cgit v1.2.3