ok this is just being picky but on darwin and mac we really should call it .dylib instead of .so but this also gave me a chance to get better with the build system. /b

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@753 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2006-03-05 23:44:04 +00:00
parent 11a8d51eb6
commit cbdfe1f72f
22 changed files with 105 additions and 98 deletions

View File

@@ -188,6 +188,8 @@ static void process_module_file(char *dir, char *fname)
#ifdef WIN32
const char *ext = ".dll";
#elif defined (MACOSX) || defined (DARWIN)
const char *ext = ".dylib";
#else
const char *ext = ".so";
#endif
@@ -201,11 +203,11 @@ static void process_module_file(char *dir, char *fname)
path = switch_core_strdup(loadable_modules.pool, file);
} else {
if (strchr(file, '.')) {
len = strlen(dir) + strlen(file) + 3;
len = strlen(dir) + strlen(file) + 4;
path = (char *) switch_core_alloc(loadable_modules.pool, len);
snprintf(path, len, "%s%s%s", dir, SWITCH_PATH_SEPARATOR, file);
} else {
len = strlen(dir) + strlen(file) + 7;
len = strlen(dir) + strlen(file) + 8;
path = (char *) switch_core_alloc(loadable_modules.pool, len);
snprintf(path, len, "%s%s%s%s", dir, SWITCH_PATH_SEPARATOR, file, ext);
}
@@ -324,6 +326,9 @@ SWITCH_DECLARE(switch_status) switch_loadable_module_init()
#ifdef WIN32
const char *ext = ".dll";
const char *EXT = ".DLL";
#elif defined (MACOSX) || defined (DARWIN)
const char *ext = ".dylib";
const char *EXT = ".DYLIB";
#else
const char *ext = ".so";
const char *EXT = ".SO";