Alex Smirnov wrote:
*Some questions following this disscussion:*
- Are "Link Smart" and "Smart Linkable" really helpfull to get
executable file smaller in size?
- Can I compile and link all UNITS to be "Smart linkable" - is it
possible and will it also make executable files smaller?
The best solution for this: Test =)
I just tested on Lazarus 0.9.10 and -CX and -XX options reduced slightly
the exe size. My lcl is not compiled with -CX and -XX
I think there is a bug in the current version of the GNU Linker (ld)
witch makes it include debug info and not smart link anything even if we
tell him to or something like this. At least this is what I read on the
other "big exe" threads.
> - Aslo, can I try to bild Lazarus using -CX and -XX options and where
> should I place thouse options to set them as default?
Why don't you try? ^^
> - Why I must use "strip" to cut off debug information both in Linux and
> in Windows, even if I set "Strip Symbols From Executable(-Xx)" to True
> in Compiler options?
Because -Xx is buggy? Just tested on Lazarus 0.9.10 on Linux and it did
not strip my executable. Is there already a bug report for this?
Acctually I think the bug report should go to FPC....
Using strip is a 100% sure method to cut the debug info. Works great.
better yet with upx. You get killer small exes =)
Felipe
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives