From 58bea49d25af5862ae19ecdefcb20ae1115a7159 Mon Sep 17 00:00:00 2001 From: Michael Schuldt Date: Thu, 23 Aug 2012 11:59:42 +0200 Subject: [PATCH] LayerManagerService : Adding Global Object search path during Plugin Load. - 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LayerManagerService/src/main.cpp b/LayerManagerService/src/main.cpp index 110ec7a..7f7d9d1 100644 --- a/LayerManagerService/src/main.cpp +++ b/LayerManagerService/src/main.cpp @@ -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) { -- 2.7.4