1
0
mirror of https://github.com/lxsang/ant-http synced 2024-07-03 13:39:46 +02:00

fix dlopen

This commit is contained in:
lxsang 2019-11-14 18:48:44 +01:00
parent 97228be9e6
commit adc898d5d8
3 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ sudo make install
``` ```
The script will ask for a place to put the binaries (should be an absolute path, otherwise the build will fail) and the default HTTP port for the server config. The script will ask for a place to put the binaries (should be an absolute path, otherwise the build will fail) and the default HTTP port for the server config.
### Generte distribution ### Generate distribution
```sh ```sh
libtoolize libtoolize
aclocal aclocal

Binary file not shown.

View File

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