aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System
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
commit859cf6308517e4824288265d48b7d2062ba1e2ae (patch)
tree1955e6fd2fa6b43000248dfc0ba2a5e10d997c5d /lib/System
parent47989b9deea95324f724b9bc212fd3a1c0503caa (diff)
downloadexternal_llvm-859cf6308517e4824288265d48b7d2062ba1e2ae.zip
external_llvm-859cf6308517e4824288265d48b7d2062ba1e2ae.tar.gz
external_llvm-859cf6308517e4824288265d48b7d2062ba1e2ae.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')
-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();