From: Kristian Høgsberg Date: Thu, 26 Jul 2012 15:39:26 +0000 (-0400) Subject: compositor: Load modules with RTLD_NOW so we get missing symbols up front X-Git-Tag: submit/trunk/20120814.155504~140 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1acd9f82f85ac9ce5f9a9e5f9f1c5667ef1f9d9e;p=profile%2Fivi%2Fweston.git compositor: Load modules with RTLD_NOW so we get missing symbols up front Otherwise we have no way to clean up when we hit something undefined. --- diff --git a/src/compositor.c b/src/compositor.c index ed887a4..746ff85 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -3336,7 +3336,7 @@ load_module(const char *name, const char *entrypoint, void **handle) snprintf(path, sizeof path, "%s", name); weston_log("Loading module '%s'\n", path); - module = dlopen(path, RTLD_LAZY); + module = dlopen(path, RTLD_NOW); if (!module) { weston_log("Failed to load module: %s\n", dlerror()); return NULL;