axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r1162744 - /axis/axis2/c/core/trunk/util/src/dll_desc.c
Date Mon, 29 Aug 2011 11:22:25 GMT
Author: samisa
Date: Mon Aug 29 11:22:25 2011
New Revision: 1162744

URL: http://svn.apache.org/viewvc?rev=1162744&view=rev
Log:
Applied the patch given to AXIS2C-1549 that Allow shared libs to be loaded using literal filenames
as well as original inferred style

Modified:
    axis/axis2/c/core/trunk/util/src/dll_desc.c

Modified: axis/axis2/c/core/trunk/util/src/dll_desc.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/src/dll_desc.c?rev=1162744&r1=1162743&r2=1162744&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/util/src/dll_desc.c (original)
+++ axis/axis2/c/core/trunk/util/src/dll_desc.c Mon Aug 29 11:22:25 2011
@@ -291,6 +291,14 @@ axutil_dll_desc_create_platform_specific
 
     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);



Mime
View raw message