On Mon, 10 Apr 2006, Marc Santhoff wrote:

Am Montag, den 10.04.2006, 09:12 +0200 schrieb Michael Van Canneyt:

On Sat, 8 Apr 2006, Panagiotis Sidiropoulos wrote:

- Is it possible somehow to avoid including all these dependencies?

Yes, several:
1. Rewrite the GTK/X11 units so they load all needed libraries on-demand.
    The problem is that GTK and some X library units are bound statically to all
    libraries.
2. Recompile the GTK/X11/LCL units with smartlinking. This will drastically
    increase compile times, but your app will be smaller and will include
    only those libraries that are actually used.

- Can someone direct me on how statically include libraries to executable?

You'd need all libraries available in static form, and then pass
-k--static to the compiler.

... and be aware of LGPL which forbids linking statically for closed
source software.

I am merely giving technical advice, not juridical.

Otherwise, you could expect a huge fee ;-)

Michael.

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

Reply via email to