[llvm-commits] [llvm] r53385 - /llvm/trunk/lib/System/DynamicLibrary.cpp
Chris Lattner
sabre at nondot.org
Wed Jul 9 17:52:20 PDT 2008
Author: lattner
Date: Wed Jul 9 19:52:20 2008
New Revision: 53385
URL: http://llvm.org/viewvc/llvm-project?rev=53385&view=rev
Log:
open plugins with RTLD_GLOBAL, pointed out by Bram Adams.
Modified:
llvm/trunk/lib/System/DynamicLibrary.cpp
Modified: llvm/trunk/lib/System/DynamicLibrary.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/DynamicLibrary.cpp?rev=53385&r1=53384&r2=53385&view=diff
==============================================================================
--- llvm/trunk/lib/System/DynamicLibrary.cpp (original)
+++ llvm/trunk/lib/System/DynamicLibrary.cpp Wed Jul 9 19:52:20 2008
@@ -61,7 +61,7 @@
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();
More information about the llvm-commits
mailing list