changeset 431:9e1e12d1fbc3

* Load with RTLD_GLOBAL, otherwise Vampy plugins can't load their interpreters
author Chris Cannam
date Thu, 19 Jun 2008 15:11:28 +0000
parents 304fd0223fa6
children 113cf8781bd1
files plugin/FeatureExtractionPluginFactory.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;