aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/System/DynamicLibrary.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-10 00:52:20 +0000
committerChris Lattner <sabre@nondot.org>2008-07-10 00:52:20 +0000
commit2e24e0ca68a99e94eb30267ca49f1a238e42f590 (patch)
tree1fabbf67f0ed70653baefdeb47976dabcfb12cc9 /llvm/lib/System/DynamicLibrary.cpp
parentd977c076802a64e7666145b844c7765f3b866acc (diff)
downloadllvm-2e24e0ca68a99e94eb30267ca49f1a238e42f590.zip
llvm-2e24e0ca68a99e94eb30267ca49f1a238e42f590.tar.gz
llvm-2e24e0ca68a99e94eb30267ca49f1a238e42f590.tar.bz2
open plugins with RTLD_GLOBAL, pointed out by Bram Adams.
llvm-svn: 53385
Diffstat (limited to 'llvm/lib/System/DynamicLibrary.cpp')
-rw-r--r--llvm/lib/System/DynamicLibrary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/DynamicLibrary.cpp b/llvm/lib/System/DynamicLibrary.cpp
index 572ba49..5e3b6cb 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();