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:
Michael Jerris 2010-01-18 07:32:38 +00:00
parent 05b9506833
commit 95560c905d
1 changed files with 3 additions and 1 deletions

View File

@ -188,7 +188,9 @@ switch_status_t loadRuntime()
#ifndef WIN32
// 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
switch_snprintf(filename, 256, "%s%s%s", SWITCH_GLOBAL_dirs.mod_dir, SWITCH_PATH_SEPARATOR, MOD_MANAGED_DLL);