From 848e77ed8b65dea5fd16b0fb4e3a4c72993edfa5 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 14 Nov 2006 19:30:41 +0000 Subject: [PATCH] Opening plugin with lazy symbol resolving fixes a crash on NetBSD/sparc64 --- src/account.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/account.c b/src/account.c index ba3f650..2cbae66 100644 --- a/src/account.c +++ b/src/account.c @@ -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) {