[Lazarus] How to reduce size of lazarus itself?

Martin Frb lazarus at mfriebe.de
Fri Apr 9 00:46:53 CEST 2021

On 08/04/2021 23:24, Bo Berglund via lazarus wrote:
> I just checked out 2.0.12 on a RaspberryPi4 and built it using my existing fpc
> 3.2.0.
> 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.
Settings are taken from Tools > configure build lazarus.

-O3 -g-

in there.

More information about the lazarus mailing list