Alex Smirnov wrote:
 > 1)How can I build Lazarus from command promt to make all ints units
Smart Linkable? Also, is it possible to add somewhere thouse optimization switches: -S2cgi -CX -Og3ru -gl -XX

You can compile from inside itself. This way is less error prone. Open lazarus, and go for the menu: Tools >> Configure Build Lazarus

On the "Options" field you can add the compile option switches.

Then select NONE to everything and build+clean for LCL. I bet you only want to recompile the LCL with optimizations. It doesn't matter for your program size if Lazarus itself is compiled one way or another.

Close the dialog and go for the menu: Tools >> Build Lazarus

If you altered the fpc config file this may lead to conflics with configure build options, but I wouldn't know.

2)How can I build Lazarus from command promt to include some static packages - printer4lazarus and glscene?

Why compile from the command prompt??? If you need error messages just execute lazarus from a command line and you can use the IDE and yet see error messages on the bash terminal.

Open the package main file. Compile the package hitting the Compile button and then hit the Install button.

>> May be it is impossible to compilate Lazarus wit Smart Linking?

No, it is not. Acctually I never tryed to recompile lazarus IDE with smart linking, but the LCL, the code that is acctually put inside your program surely can be compiled with smart linking.

I bet this will bring the exe size down.

Felipe

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to