[Lazarus] Linux Binary without "dynamically linked"?

Jalal jalsalihi at yahoo.com
Mon Aug 25 22:39:17 CEST 2008


Perhaps I wrote too soon. I see this option for fpc:

-Xt        link with static libraries (-static is passed to linker)

I will try that.

--- On Mon, 8/25/08, Jalal <jalsalihi at yahoo.com> wrote:
From: Jalal <jalsalihi at yahoo.com>
Subject: Linux Binary without "dynamically linked"?
To: lazarus at lazarus.freepascal.org
Date: Monday, August 25, 2008, 4:32 PM

This is more of a FPC question, but I know FPC gurus visit here...

The file program on Debian shows my Linux command line binary like this:

ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped

Is it possible to have full static linking? If so, how do I get a binary with full static linking? Is there an option that can be used on the fpc command line?

I realize the benefits of dynamic linking, but there are some situations where static linking would make life simpler, particularly for deployment to machines I do not control.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080825/d0505dc3/attachment-0007.html>


More information about the Lazarus mailing list