AIX: Create an option to Archive shared Libraries
Respected community members,
Hi,
In AIX, we archive shared libraries. This is done so that the version control in AIX can be managed well with different versions of the shared library in an archive ensuring applications use the correct version.
This issue is to create a shared library archive in cmake for AIX.
We understand that, as of now, we have AIX folks who use.so for shared libraries when the build tool is cmake. The fix to this issue is to enhance cmake with an option to create an archive in AIX.
AIX folks can pass an option (-DAIX_SO_ARCHIVE = ON) to archive shared libraries. By default, cmake can continue to create .so's for shared libraries in AIX, just like any other Linux target.
We also want to take care of this in a way that other supported targets in Cmake are not affected.
If Cmake in AIX supports archiving, it will give us better version control as more open-source communities adapt to Cmake as the build tool. Build-tool communities like Meson have begun to support AIX with the ability to archive shared libraries.
We have the fix and would like to raise a pull request for the same to understand the community's opinion and suggestions and contribute this PR to the Cmake community.
Kindly let us know if we can do the same.