gobject-introspection r437 - in trunk: . girepository
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r437 - in trunk: . girepository
- Date: Thu, 21 Aug 2008 14:21:01 +0000 (UTC)
Author: johan
Date: Thu Aug 21 14:21:00 2008
New Revision: 437
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=437&view=rev
Log:
2008-08-21 Johan Dahlin <johan gnome org>
* girepository/gtypelib.c (_g_typelib_init):
Use g_module_build_path to resolve the shlib name
Modified:
trunk/ChangeLog
trunk/girepository/gtypelib.c
Modified: trunk/girepository/gtypelib.c
==============================================================================
--- trunk/girepository/gtypelib.c (original)
+++ trunk/girepository/gtypelib.c Thu Aug 21 14:21:00 2008
@@ -1836,6 +1836,8 @@
if (typelib->module == NULL)
{
+ gchar *resolved_shlib;
+
/* Glade's autoconnect feature and OpenGL's extension mechanism
* as used by Clutter rely on dlopen(NULL) to work as a means of
* accessing the app's symbols. This keeps us from using
@@ -1844,11 +1846,14 @@
* themselves and are not expecting to be unloaded. So we just
* load modules globally for now.
*/
-
- typelib->module = g_module_open (shlib, G_MODULE_BIND_LAZY);
+
+ resolved_shlib = g_module_build_path (NULL, shlib);
+ typelib->module = g_module_open (resolved_shlib, G_MODULE_BIND_LAZY);
if (typelib->module == NULL)
g_warning ("Failed to load shared library referenced by the typelib: %s",
g_module_error ());
+
+ g_free (resolved_shlib);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]