summaryrefslogtreecommitdiffstats
path: root/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
commitae55e04d7a89af2a02041ecbf7f46cba753fa8ce (patch)
tree1955e6fd2fa6b43000248dfc0ba2a5e10d997c5d /lib/System/DynamicLibrary.cpp
parent7cc9a4b990b8dc6043c47b64e91352b444d3938b (diff)
downloadexternal_llvm-ae55e04d7a89af2a02041ecbf7f46cba753fa8ce.zip
external_llvm-ae55e04d7a89af2a02041ecbf7f46cba753fa8ce.tar.gz
external_llvm-ae55e04d7a89af2a02041ecbf7f46cba753fa8ce.tar.bz2
open plugins with RTLD_GLOBAL, pointed out by Bram Adams.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/DynamicLibrary.cpp')
-rw-r--r--lib/System/DynamicLibrary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/DynamicLibrary.cpp b/lib/System/DynamicLibrary.cpp
index 572ba49..5e3b6cb 100644
--- a/lib/System/DynamicLibrary.cpp
+++ b/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();