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
This commit is contained in:
Colin Walters 2009-04-07 17:07:32 -04:00 committed by Owen W. Taylor
parent a4746d75e6
commit 96dfeea412

View File

@ -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 ());