[fpc-pascal] FPC static linking of zlib

Michael Van Canneyt michael at freepascal.org
Tue Apr 13 20:56:02 CEST 2010



On Tue, 13 Apr 2010, Matthias Klumpp wrote:

> Hello!
> Some time ago, bug #472304
> (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=472304) was filed against
> Debian, cause FPC does not link executables dynamically. This bug should
> have been fixed with FPC 2.4.0

FPC does link executables dynamically ? But a pascal-only program is
a single binary that does not link to any library, for the simple reason
that such libraries do not exist.

> Unfortunately, the binaries generated by FPC 2.4.0 on Debian seem to link
> zlib statically, which is a clear violation of the Debian policy and might
> prevent packages compiled using FPC from beeing accepted into Debian.
> Could someone please give some feedback about this bug? When does it get
> fixed? Why is it not already fixed? Or is it already done in FPC and
> there's just some parameter missing?

This bug report does not make any sense.

1. FPC does link executables to dynamic libraries if you ask it to.
    I do it every day.

2. zlib is linked dynamically if you ask it to be. If the zlib unit  is used,
    then zlib is linked dynamically. If they use paszlib, then the answer is that
    Paszlib is *NOT* zlib, and if that is used, then debian rules simply don't apply.

So what is the problem ?

Michael.



More information about the fpc-pascal mailing list