[mutter] Don't use G_MODULE_BIND_LOCAL



commit 96dfeea412b085ca4c09373402960fe25fa67446
Author: Colin Walters <walters verbum org>
Date:   Tue Apr 7 17:07:32 2009 -0400

    Don't use G_MODULE_BIND_LOCAL
    
    Using G_MODULE_BIND_LOCAL causes problems for introspecting plugins,
    since introspected symbols need to be globally available. And in
    any case, trying to use linker features to prevent symbol conflicts
    doesn't usually work out very well, it's better to just namespace
    properly.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=580033
---
 src/compositor/mutter/mutter-module.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/compositor/mutter/mutter-module.c b/src/compositor/mutter/mutter-module.c
index 02b9554..30a2d0d 100644
--- a/src/compositor/mutter/mutter-module.c
+++ b/src/compositor/mutter/mutter-module.c
@@ -57,7 +57,7 @@ mutter_module_load (GTypeModule *gmodule)
   g_assert (priv->path);
 
   if (!priv->lib &&
-      !(priv->lib = g_module_open (priv->path, G_MODULE_BIND_LOCAL)))
+      !(priv->lib = g_module_open (priv->path, 0)))
     {
       g_warning ("Could not load library [%s (%s)]",
                  priv->path, g_module_error ());



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]