fix loading managed mods to not need to be in so search path (MODLANG-148)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16355 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
05b9506833
commit
95560c905d
|
@ -188,7 +188,9 @@ switch_status_t loadRuntime()
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
// So linux can find the .so
|
// So linux can find the .so
|
||||||
mono_config_parse_memory("<configuration><dllmap dll=\"mod_managed\" target=\"mod_managed.so\"/></configuration>");
|
char xmlConfig[300];
|
||||||
|
switch_snprintf(xmlConfig, 300, "<configuration><dllmap dll=\"mod_managed\" target=\"%s%smod_managed.so\"/></configuration>", SWITCH_GLOBAL_dirs.mod_dir, SWITCH_PATH_SEPARATOR);
|
||||||
|
mono_config_parse_memory(xmlConfig);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
switch_snprintf(filename, 256, "%s%s%s", SWITCH_GLOBAL_dirs.mod_dir, SWITCH_PATH_SEPARATOR, MOD_MANAGED_DLL);
|
switch_snprintf(filename, 256, "%s%s%s", SWITCH_GLOBAL_dirs.mod_dir, SWITCH_PATH_SEPARATOR, MOD_MANAGED_DLL);
|
||||||
|
|
Loading…
Reference in New Issue