fix ld bug

This commit is contained in:
lxsang 2020-01-01 21:21:05 +01:00
parent b3609ea014
commit d5c4461d34
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -61,7 +61,7 @@ void * plugin_from_file(char* name)
char* error;
char* path = __s("%s%s%s",config()->plugins_dir,name,config()->plugins_ext);
void (*fn)(const char*, config_t*);
lib_handle = dlopen(path, RTLD_NOW| RTLD_GLOBAL);
lib_handle = dlopen(path, RTLD_LAZY);
if (!lib_handle)
{
ERROR("Cannot load plugin '%s' : '%s'",name,dlerror());