[Lazarus] A simple way to stop the never ending story of long executable?
Giuliano Colla
giuliano.colla at fastwebnet.it
Mon May 29 11:38:48 CEST 2017
Il 26/05/2017 23:14, Bo Berglund via Lazarus ha scritto:
> On Sat, 20 May 2017 12:24:01 +0200, Giuliano Colla via Lazarus
> <lazarus at lists.lazarus-ide.org> wrote:
>
>> ...would stop the complaints about "long executable".
> How about strip -s <filename> as a post-compile step before shipping?
>
>
That way you erase the debug symbols. If later a user complains about a
bug, or about a supposed bug, you're forced to recompile everything, and
if something has changed in between, you can't tell what's the cause of
the trouble.
If you keep the debug symbols in a separate file, you have the best of
both worlds. You may choose whether to ship debug symbols or not, you
may debug again exactly the same binary you shipped, you may ship later
the debug symbols if you need to have someone debug on the field, etc.
etc. It's just a compiler flag you never need to change. Then it's up to
you to decide what to ship and what to keep.
Giuliano
More information about the Lazarus
mailing list