diff vamp-sdk/hostext/PluginLoader.cpp @ 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 761d248f0198
children 7fc1041daa9d
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;