9405585
--- CEGUI-0.6.0/src/CEGUIDynamicModule.cpp~	2008-05-21 22:11:55.000000000 +0200
9405585
+++ CEGUI-0.6.0/src/CEGUIDynamicModule.cpp	2008-05-21 22:11:55.000000000 +0200
9405585
@@ -65,6 +65,18 @@ DynamicModule::DynamicModule(const Strin
9405585
 	} // if(name.empty())
9405585
 
9405585
 #if defined(__linux__)
9405585
+    // check if we are being asked to open a CEGUI .so, if so postfix the name
9405585
+    // with our package version
9405585
+    if (d_moduleName.substr(0, 5) == "CEGUI" ||
9405585
+        d_moduleName.substr(0, 8) == "libCEGUI")
9405585
+    {
9405585
+        // strip .so extension before postfixing, will get added again below
9405585
+        if (d_moduleName.substr(d_moduleName.length() - 3, 3) == ".so")
9405585
+            d_moduleName = d_moduleName.substr(0, d_moduleName.length() - 3);
9405585
+        d_moduleName += "-";
9405585
+        d_moduleName += PACKAGE_VERSION;
9405585
+    }
9405585
+
9405585
     // dlopen() does not add .so to the filename, like windows does for .dll
9405585
     if (d_moduleName.substr(d_moduleName.length() - 3, 3) != ".so")
9405585
         d_moduleName += ".so";