WEDNESDAY, AUGUST 5, 2015
ada
Provide shared GNAT implib on Windows.
Windows builds now provide a shared GNAT import library, enabling linking against the shared runtime.
This change provides a shared GNAT import library on Windows systems. This allows developers to link their Ada applications against the shared GNAT runtime library, which can reduce executable size and simplify deployment.
In Details
On Windows, when linking against a shared runtime library, an import library is typically required. This commit adds the necessary build rules in gcc/ada/gcc-interface/Makefile.in to create this import library (gnatlib-shared-win32) for the shared GNAT runtime. This aligns the Ada toolchain with common Windows dynamic linking practices.
For Context
- GNAT
- The GNU Ada Compiler, part of the GCC suite.
- implib
- Import library. On Windows, an import library is a file that contains information about functions and variables exported by a DLL or shared library, allowing other programs to link against it.
- shared runtime
- A set of library functions that are dynamically loaded at runtime, rather than being statically linked into the executable. This allows multiple programs to share the same library code in memory.