[Lazarus] Size of binaries etc.

Sven Barth pascaldragon at googlemail.com
Mon Mar 26 12:13:31 CEST 2012


Am 26.03.2012 12:10, schrieb Juha Manninen:
> On Mon, Mar 26, 2012 at 12:49 PM, Marco van de Voort <marcov at stack.nl
> <mailto:marcov at stack.nl>> wrote:
>
>     -CX compiles units with smartlinking
>
>     -XX compiles binaries with smartlinking.
>
>     When -XX is used, only units compiled with -CX will give size
>     benefits (if
>     relevant)
>
>
> Ok, I added -XX and rebuilt Lazarus. Still the binary has exactly the
> same size as before.
> The flags:
>
> -O2 -g- -Xs
>
> and
>    -O2 -g- -Xs -CX -XX
>
> both produce an executable of size 23649 KB on my 64-bit Linux system
> using QT bindings.
> Is it a Linux linker related issue?

Did this also trigger a recompile of the LCL and all used packages?

Otherwise it might indeed be linker related.

Regards,
Sven





More information about the Lazarus mailing list