On Tue, May 21, 2002, Christoph Schug wrote:

>     Why do we need zlib during run-time if we are building static only?

Because libz.a is not _included_ into libpng.a under built-time! libz.a
only contains (unsolved) references to symbols in libz.a, but not the
code of libz.a. So libz is needed under build-time mainly for the header
files (prototypes, etc) but it is still needed under link-time (and
for a library package this is its run-time!) to fulfill the symbol
references in libpng.a! The same is true for _all_ types of library
packages, independent whether static or dynamic code is built.

| $ nm -g /cw/lib/libpng.a | grep inflate
|          U inflateReset
|          U inflate
|          U inflateReset
|          U inflate
|          U inflateEnd
|          U inflateInit_
|          U inflate
|          U inflateReset

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to