Building GNAT on MUSL, now always static

28/05/18, modified 17/09/18

An update on the previous version.

The produced gcc compiler builds static executables and no dynamically linked executables1.

For detailed instructions in how to run the script see the readme-2018-05-28.txt.

Updated!, the 2018-05-28 file contained a broken patch

New version!

  1. Building dynamically linked executables is controlled by a specfile. GCC has a builtin specfile, code for this file can be found in the gcc/config directory of the gcc source. The C++ and Ada front-ends have a slightly different handling of these settings and for these also some code had to be changed. The changes can be found in the 'gcc-4.9.adacore2016-2-musl.diff' file. []

One Response to “Building GNAT on MUSL, now always static”

  1. [...] Ave1's GNAT version 2018-05-29 moving towards supporting only static linking (but not quite there yet, see next version). [...]

Leave a Reply