# HG changeset patch # User Chris Cannam # Date 1213888288 0 # Node ID 9e1e12d1fbc38219d9ade7204337aedf57d42015 # Parent 304fd0223fa6f9bf3456ead9c8f8910fc5f2f883 * Load with RTLD_GLOBAL, otherwise Vampy plugins can't load their interpreters diff -r 304fd0223fa6 -r 9e1e12d1fbc3 plugin/FeatureExtractionPluginFactory.cpp --- a/plugin/FeatureExtractionPluginFactory.cpp Wed Jun 18 15:53:23 2008 +0000 +++ b/plugin/FeatureExtractionPluginFactory.cpp Thu Jun 19 15:11:28 2008 +0000 @@ -133,7 +133,7 @@ std::cerr << "FeatureExtractionPluginFactory::getPluginIdentifiers: trying potential library " << soname.toStdString() << std::endl; #endif - void *libraryHandle = DLOPEN(soname, RTLD_LAZY); + void *libraryHandle = DLOPEN(soname, RTLD_LAZY | RTLD_GLOBAL); if (!libraryHandle) { std::cerr << "WARNING: FeatureExtractionPluginFactory::getPluginIdentifiers: Failed to load library " << soname.toStdString() << ": " << DLERROR() << std::endl; @@ -331,7 +331,7 @@ soname = found; - void *libraryHandle = DLOPEN(soname, RTLD_LAZY); + void *libraryHandle = DLOPEN(soname, RTLD_LAZY | RTLD_GLOBAL); if (!libraryHandle) { std::cerr << "FeatureExtractionPluginFactory::instantiatePlugin: Failed to load library " << soname.toStdString() << ": " << DLERROR() << std::endl;