Is it possible to build from source code of statically linked GCC compiler?
If so, what configuration / build flags should I specify?
Coped with the task in the end. Thanks guys from foreign stackoverflow .
I will duplicate the solution:
To build a statically linked gcc compiler, you need to specify the following flags when configuring (./configure)
../configure --disable-shared --disable-host-shared --with-boot-ldflags=-static --with-stage1-ldflags=-static Source: https://ru.stackoverflow.com/questions/601156/
All Articles