[Lazarus] How to strip debug symbols from exe file?

Bo Berglund bo.berglund at gmail.com
Sat Dec 30 12:49:52 CET 2017


On Sat, 30 Dec 2017 12:14:43 +0100 (CET), Michael Van Canneyt via
Lazarus <lazarus at lists.lazarus-ide.org> wrote:

>> On Linux I am used to do "strip -s filename" on the resulting
>> executable to bring it down to a sensible size.
>> But on Windows 7, what can I do?
>
>You can do exactly the same. FPC is distributed with a strip binary.
>
Thanks, I did not know it was an fpc utility, I believed it was
something that came with Linux...
However the fpc install is not on path so I had to do this:

C:\Programs\lazarus1.8\fpc\3.0.4\bin\x86_64-win64\strip -s
SvnMailer.exe

Brought it down from 7.7M to 1.4M, pretty much. :)


-- 
Bo Berglund
Developer in Sweden



More information about the Lazarus mailing list