<div class="gmail_quote">On Mon, Mar 26, 2012 at 12:49 PM, Marco van de Voort <span dir="ltr"><<a href="mailto:marcov@stack.nl">marcov@stack.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-CX compiles units with smartlinking<br>
<br>
-XX compiles binaries with smartlinking.<br>
<br>
When -XX is used, only units compiled with -CX will give size benefits (if<br>
relevant)<br></blockquote></div><br>Ok, I added -XX and rebuilt Lazarus. Still the binary has exactly the same size as before.<br>The flags:<br><br>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">  -O2 -g- -Xs</p>and<br>  -O2 -g- -Xs -CX -XX<br><br>both produce an executable of size 23649 KB on my 64-bit Linux system using QT bindings.<br>
Is it a Linux linker related issue?<br><br>Juha<br><br>