diff plugin/FeatureExtractionPluginFactory.cpp @ 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 115f60df1e4d
children 824a87450f81
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;