forked from enlightenment/enlightenment
Revert "module loading: use global symbols with BSDs and local with Linux."
This shouldn't be necessary now.
This reverts commit 28ad7b337c
.
This commit is contained in:
parent
91463a9621
commit
e2d449348f
|
@ -392,11 +392,7 @@ e_module_new(const char *name)
|
|||
m->error = 1;
|
||||
goto init_done;
|
||||
}
|
||||
#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__NetBSD__)
|
||||
m->handle = dlopen(modpath, (RTLD_NOW | RTLD_GLOBAL));
|
||||
#else
|
||||
m->handle = dlopen(modpath, (RTLD_NOW | RTLD_LOCAL));
|
||||
#endif
|
||||
if (!m->handle)
|
||||
{
|
||||
snprintf(body, sizeof(body),
|
||||
|
|
|
@ -87,11 +87,7 @@ e_modapi_init(E_Module *m)
|
|||
else
|
||||
snprintf(buf, sizeof(buf), "%s/%s/%s",
|
||||
e_module_dir_get(m), MODULE_ARCH, file);
|
||||
#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__NetBSD__)
|
||||
handle = dlopen(buf, RTLD_NOW | RTLD_GLOBAL);
|
||||
#else
|
||||
handle = dlopen(buf, RTLD_NOW | RTLD_LOCAL);
|
||||
#endif
|
||||
if (handle)
|
||||
{
|
||||
void (*fn) (const E_Wizard_Api *a);
|
||||
|
|
Loading…
Reference in New Issue