Opening plugin with lazy symbol resolving fixes a crash on NetBSD/sparc64

This commit is contained in:
Pierre Pronchery 2006-11-14 19:30:41 +00:00
parent 5ebc02c8e9
commit 848e77ed8b

View File

@ -38,7 +38,7 @@ Account * account_new(char const * type, char const * name)
return NULL;
}
sprintf(filename, "%s/%s/%s.so", PLUGINDIR, type, name);
if((account->handle = dlopen(filename, RTLD_NOW)) == NULL
if((account->handle = dlopen(filename, RTLD_LAZY)) == NULL
|| (account->plugin = dlsym(account->handle,
"account_plugin")) == NULL)
{