We need to open with global. Else embrace module wont work, since it

opens its own modules.


SVN revision: 16318
This commit is contained in:
sebastid 2005-08-24 21:25:06 +00:00 committed by sebastid
parent 6d2c0660b4
commit 6130f4ccec
1 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ e_module_new(char *name)
free(m);
return NULL;
}
m->handle = dlopen(modpath, RTLD_NOW | RTLD_LOCAL);
m->handle = dlopen(modpath, RTLD_NOW | RTLD_GLOBAL);
if (!m->handle)
{
e_error_dialog_show(_("Error loading Module"),
@ -113,7 +113,7 @@ e_module_new(char *name)
"The full path to this module is:\n"
"%s\n"
"The error reported was:\n"
"%s"),
"dlopen: %s"),
name, buf, dlerror());
free(m);
return NULL;
@ -135,7 +135,7 @@ e_module_new(char *name)
"The full path to this module is:\n"
"%s\n"
"The error reported was:\n"
"%s"),
"dlsym: %s"),
name, buf, dlerror());
dlclose(m->handle);
free(m);