LayerManagerService : Adding Global Object search path during Plugin Load.
authorMichael Schuldt <michael.schuldt@bmw.de>
Thu, 23 Aug 2012 09:59:42 +0000 (11:59 +0200)
committerMichael Schuldt <michael.schuldt@bmw.de>
Thu, 23 Aug 2012 09:59:42 +0000 (11:59 +0200)
- extending the dlopen call by RTLD_GLOBAL, due to the fact that
  there is a bug in libwayland-server / client which is currently not
  working with only RTLD_NOW.

- this shoud have no side effects on other plugins.

LayerManagerService/src/main.cpp

index 110ec7a..7f7d9d1 100644 (file)
@@ -89,7 +89,7 @@ T* getCreateFunction(string libname)
     // open library
     void *libraryHandle;
     dlerror(); // Clear any existing error
-    libraryHandle = dlopen(libname.c_str(), RTLD_NOW /*LAZY*/);
+    libraryHandle = dlopen(libname.c_str(), RTLD_NOW | RTLD_GLOBAL /*LAZY*/);
     const char* dlopen_error = dlerror();
     if (!libraryHandle || dlopen_error)
     {