# HG changeset patch # User cannam # Date 1213888361 0 # Node ID a6cfe3d9f7525aeda1a0127b6b69c44f4148e26a # Parent bb46b8bd213ab1c60be39baa4df319c032a6a0da * Load plugins with RTLD_GLOBAL -- otherwise Vampy plugins will be unable to load additional modules (for some reason I don't fully understand) diff -r bb46b8bd213a -r a6cfe3d9f752 vamp-sdk/hostext/PluginLoader.cpp --- 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;