[lazarus] Static build
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Dec 8 10:55:03 EST 2003
On Mon, 08 Dec 2003 11:28:59 +0200 "A.J. Venter" <ajventer at direqlearn.org>
wrote:
> Hi guys,
> How would I go about to build a lazarus program completely statically.
>
> The program in question needs to run from a very minimal environment,
> and no other program will ever run there. It would be great if I can
> just statically link it against GTK/GDK etc. so I don't need the
> libraries separately.
See Run -> Compiler Options -> Linking -> Options
Check "Pass Options to Linker ..." and add -static to the options.
Make sure you have all static libs installed.
BTW. Does someone know, why the compiler option -XS does not work?
Mattias
More information about the Lazarus
mailing list