Extend runtime GPR files for building shared libraries.
The Ada runtime GPR files now support building shared and static PIC libraries.
This commit extends the Ada runtime GPR (Gnu Project Repository) project definitions to support shared and static PIC (Position Independent Code) runtime builds. When LIBRARY_KIND is “static-pic”, the libraries gain a “_pic” suffix. When it’s “dynamic”, the Library_Version attribute is configured to set the correct SONAME on Unix and expected symlinks. Additionally, libgnarl.gpr now depends on libgnat.gpr, which is necessary for building shared libraries.
In Details
This commit modifies libgnarl/libgnarl.gpr and libgnat/libgnat.gpr to enable the building of shared and static PIC Ada runtimes. The changes involve setting the Library_Name and Library_Version attributes based on the Library_Kind, adding a "_pic" suffix for static PIC libraries, and adding a dependency from libgnarl.gpr to libgnat.gpr. These changes are important for developers who need to build shared libraries with the Ada runtime.
For Context
The Ada runtime library provides essential functions for Ada programs, such as memory management and tasking. GPR files are used to manage the build process of Ada projects. This commit extends the GPR files for the Ada runtime to allow building the runtime as a shared library, which can be dynamically loaded by other programs at runtime, or as a static position independent library. This is important for deploying Ada applications in various environments and ensures that the runtime can be built correctly in both shared and static configurations.