diff options
-rw-r--r-- | lib/Support/PluginLoader.cpp | 2 | ||||
-rw-r--r-- | support/lib/Support/PluginLoader.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/PluginLoader.cpp b/lib/Support/PluginLoader.cpp index b973b16..76c5e81 100644 --- a/lib/Support/PluginLoader.cpp +++ b/lib/Support/PluginLoader.cpp @@ -18,7 +18,7 @@ namespace { struct PluginLoader { void operator=(const std::string &Filename) { - if (dlopen(Filename.c_str(), RTLD_NOW) == 0) + if (dlopen(Filename.c_str(), RTLD_NOW|RTLD_GLOBAL) == 0) std::cerr << "Error opening '" << Filename << "': " << dlerror() << "\n -load request ignored.\n"; } diff --git a/support/lib/Support/PluginLoader.cpp b/support/lib/Support/PluginLoader.cpp index b973b16..76c5e81 100644 --- a/support/lib/Support/PluginLoader.cpp +++ b/support/lib/Support/PluginLoader.cpp @@ -18,7 +18,7 @@ namespace { struct PluginLoader { void operator=(const std::string &Filename) { - if (dlopen(Filename.c_str(), RTLD_NOW) == 0) + if (dlopen(Filename.c_str(), RTLD_NOW|RTLD_GLOBAL) == 0) std::cerr << "Error opening '" << Filename << "': " << dlerror() << "\n -load request ignored.\n"; } |