mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 00:38:21 +01:00
fix dlopen
This commit is contained in:
parent
97228be9e6
commit
adc898d5d8
@ -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.
|
||||
|
||||
### Generte distribution
|
||||
### Generate distribution
|
||||
```sh
|
||||
libtoolize
|
||||
aclocal
|
||||
|
BIN
dist/antd-1.0.4b.tar.gz
vendored
BIN
dist/antd-1.0.4b.tar.gz
vendored
Binary file not shown.
@ -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_LAZY);
|
||||
lib_handle = dlopen(path, RTLD_NOW| RTLD_GLOBAL);
|
||||
if (!lib_handle)
|
||||
{
|
||||
LOG("Cannot load plugin '%s' : '%s'\n",name,dlerror());
|
||||
|
Loading…
Reference in New Issue
Block a user