From 14ac381647e2d8ef5d28ebe2c23c2ffb2693e009 Mon Sep 17 00:00:00 2001 From: samisa Date: Mon, 29 Aug 2011 11:22:25 +0000 Subject: Applied the patch given to AXIS2C-1549 that Allow shared libs to be loaded using literal filenames as well as original inferred style git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1162744 13f79535-47bb-0310-9956-ffa450edef68 --- util/src/dll_desc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/util/src/dll_desc.c b/util/src/dll_desc.c index 697caf3..4b65945 100644 --- a/util/src/dll_desc.c +++ b/util/src/dll_desc.c @@ -291,6 +291,14 @@ axutil_dll_desc_create_platform_specific_dll_name( AXIS2_ENV_CHECK(env, NULL); + /* allow config to give a literal lib name since it may want a + * versioned lib like "libfoo.so.0" */ + if (axutil_strstr(class_name, AXIS2_LIB_SUFFIX)) { + /* assume the class_name is the literal lib file name */ + dll_desc->dll_name = axutil_strdup(env,class_name); + return dll_desc->dll_name; + } + temp_name = axutil_stracat(env, AXIS2_LIB_PREFIX, class_name); dll_desc->dll_name = axutil_stracat(env, temp_name, AXIS2_LIB_SUFFIX); AXIS2_FREE(env->allocator, temp_name); -- cgit v1.1-32-gdbae