[Lazarus] How to reduce size of lazarus itself?

Bo Berglund bo.berglund at gmail.com
Thu Apr 8 23:24:31 CEST 2021

I just checked out 2.0.12 on a RaspberryPi4 and built it using my existing fpc
The size of the executable is 271,368,224 bytes, which reduces to 30,127,876
after using strip -s on it (takes away all the symbols).

Since I am never ever going to be debugging lazarus itself, is there some
setting I can use to NOT include the symbols in the first place?
I want a lean and fast binary...

Obviously since Lazarus rebuilds itself when packages are installed in the IDE,
this setting must be part of the installation somehow.

Bo Berglund
Developer in Sweden

More information about the lazarus mailing list