changeset 140:a6cfe3d9f752

* Load plugins with RTLD_GLOBAL -- otherwise Vampy plugins will be unable to load additional modules (for some reason I don't fully understand)
author cannam
date Thu, 19 Jun 2008 15:12:41 +0000
parents bb46b8bd213a
children cabf8e65c10f
files vamp-sdk/hostext/PluginLoader.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vamp-sdk/hostext/PluginLoader.cpp	Thu Jun 19 09:43:24 2008 +0000
+++ b/vamp-sdk/hostext/PluginLoader.cpp	Thu Jun 19 15:12:41 2008 +0000
@@ -517,7 +517,7 @@
              << path << "\"" << endl;
     }
 #else
-    handle = dlopen(path.c_str(), RTLD_LAZY);
+    handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_GLOBAL);
     if (!handle) {
         cerr << "Vamp::HostExt::PluginLoader: Unable to load library \""
              << path << "\": " << dlerror() << endl;