elementary: fix mistake with ebus linking.

SVN revision: 82596
This commit is contained in:
Cedric BAIL 2013-01-11 00:23:58 +00:00
parent 5ab9f4b980
commit 80c628daeb
1 changed files with 5 additions and 2 deletions

View File

@ -366,8 +366,11 @@ elm_need_e_dbus(void)
int (*init_func)(void) = NULL;
if (_elm_need_e_dbus) return EINA_TRUE;
/* FIXME: Maybe we should use RTLD_NOLOAD */
if (!e_dbus_handle) dlopen("libedbus.so", RTLD_LAZY | RTLD_GLOBAL);
/* We use RTLD_NOLOAD when available, so we are sure to use the 'libedbus' that was linked to the binary */
#ifndef RTLD_NOLOAD
# define RTLD_NOLOAD RTLD_GLOBAL
#endif
if (!e_dbus_handle) e_dbus_handle = dlopen("libedbus.so", RTLD_LAZY | RTLD_NOLOAD);
if (!e_dbus_handle) return EINA_FALSE;
init_func = dlsym(e_dbus_handle, "e_dbus_init");
if (!init_func) return EINA_FALSE;