diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-10-31 03:17:37 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-10-31 03:17:37 +0800 |
commit | 87e9353728c1115e7f60b1f7bb63e79723888907 (patch) | |
tree | 2c4ada4084c0a194dd6d00b83331890081cf3375 /lib | |
parent | c14d9b05d8aa0d3cff28d74376804036485646bd (diff) | |
download | gsoc2013-epiphany-87e9353728c1115e7f60b1f7bb63e79723888907.tar gsoc2013-epiphany-87e9353728c1115e7f60b1f7bb63e79723888907.tar.gz gsoc2013-epiphany-87e9353728c1115e7f60b1f7bb63e79723888907.tar.bz2 gsoc2013-epiphany-87e9353728c1115e7f60b1f7bb63e79723888907.tar.lz gsoc2013-epiphany-87e9353728c1115e7f60b1f7bb63e79723888907.tar.xz gsoc2013-epiphany-87e9353728c1115e7f60b1f7bb63e79723888907.tar.zst gsoc2013-epiphany-87e9353728c1115e7f60b1f7bb63e79723888907.zip |
Don't use BIND_LAZY when enabling debugging. That way we can find missing
2005-10-30 Christian Persch <chpe@cvs.gnome.org>
* lib/ephy-module.c: (ephy_module_load):
Don't use BIND_LAZY when enabling debugging. That way we can find
missing symbols in extensions more easily.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-module.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/ephy-module.c b/lib/ephy-module.c index 1da457aaa..8c9c977e4 100644 --- a/lib/ephy-module.c +++ b/lib/ephy-module.c @@ -86,17 +86,24 @@ ephy_module_load (GTypeModule *gmodule) EphyModule *module = EPHY_MODULE (gmodule); EphyModuleRegisterFunc register_func; gboolean is_absolute; + GModuleFlags flags = G_MODULE_BIND_LOCAL | G_MODULE_BIND_LAZY; LOG ("Loading %s", module->path); + /* In debug builds, we bind immediately so we can find missing + * symbols in extensions on load; otherwise we bind lazily + */ +#ifdef GNOME_ENABLE_DEBUG + flags &= ~G_MODULE_BIND_LAZY; +#endif + is_absolute = g_path_is_absolute (module->path); if (module->library == NULL && ! is_absolute) { char *path = g_build_filename (EXTENSIONS_DIR, module->path, NULL); - module->library = g_module_open (path, G_MODULE_BIND_LAZY | - G_MODULE_BIND_LOCAL); + module->library = g_module_open (path, flags); g_free (path); } @@ -105,16 +112,14 @@ ephy_module_load (GTypeModule *gmodule) { char *path = g_build_filename (ephy_dot_dir(), "extensions", module->path, NULL); - module->library = g_module_open (path, G_MODULE_BIND_LAZY | - G_MODULE_BIND_LOCAL); + module->library = g_module_open (path, flags); g_free (path); } if (module->library == NULL) { - module->library = g_module_open (module->path, G_MODULE_BIND_LAZY | - G_MODULE_BIND_LOCAL); + module->library = g_module_open (module->path, flags); } if (module->library == NULL) |