As joerg said, you can create a "specs" file and change the default crt you want to use. And the specs file is different in any gcc version
In case there are GCC distributions with missing "specs" file (why?) you can use
gcc -dumpspecs > specs
, store it (the internal defaults of the GCC executable you are using) to the appropriate path (sorry, I don't remember where it is, or should be, and it might be a different path in different versions of GCC) and use that as a start: You can change anything there you want, add additional C libraries, change the default C library, etc.
Edited by joerg on 2026/6/18 20:37:24 Edited by joerg on 2026/6/18 20:37:43
I did a fast check on the generated gcc packages as they come from adtools and there is no specs file included. I am goin to recompile one of them and see if that was skipped when the archive was created.
To be honest, I was not aware that a file called specs existed and could be used like what you guys describe. I will let you know if I find anything.