mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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
This commit is contained in:
parent
7cc9a4b990
commit
ae55e04d7a
@ -61,7 +61,7 @@ DynamicLibrary::~DynamicLibrary() {
|
|||||||
|
|
||||||
bool DynamicLibrary::LoadLibraryPermanently(const char *Filename,
|
bool DynamicLibrary::LoadLibraryPermanently(const char *Filename,
|
||||||
std::string *ErrMsg) {
|
std::string *ErrMsg) {
|
||||||
void *H = dlopen(Filename, RTLD_LAZY);
|
void *H = dlopen(Filename, RTLD_LAZY|RTLD_GLOBAL);
|
||||||
if (H == 0) {
|
if (H == 0) {
|
||||||
if (ErrMsg)
|
if (ErrMsg)
|
||||||
*ErrMsg = dlerror();
|
*ErrMsg = dlerror();
|
||||||
|
Loading…
Reference in New Issue
Block a user