mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
22 lines
978 B
Diff
22 lines
978 B
Diff
--- CEGUI-0.6.0/src/CEGUIDynamicModule.cpp~ 2008-05-21 22:11:55.000000000 +0200
|
|
+++ CEGUI-0.6.0/src/CEGUIDynamicModule.cpp 2008-05-21 22:11:55.000000000 +0200
|
|
@@ -65,6 +65,18 @@ DynamicModule::DynamicModule(const Strin
|
|
} // if(name.empty())
|
|
|
|
#if defined(__linux__)
|
|
+ // check if we are being asked to open a CEGUI .so, if so postfix the name
|
|
+ // with our package version
|
|
+ if (d_moduleName.substr(0, 5) == "CEGUI" ||
|
|
+ d_moduleName.substr(0, 8) == "libCEGUI")
|
|
+ {
|
|
+ // strip .so extension before postfixing, will get added again below
|
|
+ if (d_moduleName.substr(d_moduleName.length() - 3, 3) == ".so")
|
|
+ d_moduleName = d_moduleName.substr(0, d_moduleName.length() - 3);
|
|
+ d_moduleName += "-";
|
|
+ d_moduleName += PACKAGE_VERSION;
|
|
+ }
|
|
+
|
|
// dlopen() does not add .so to the filename, like windows does for .dll
|
|
if (d_moduleName.substr(d_moduleName.length() - 3, 3) != ".so")
|
|
d_moduleName += ".so";
|