[Zlib-devel] Use autoconf for zlib?

Cosmin Truta cosmin at cs.toronto.edu
Wed Apr 12 11:01:19 EDT 2006


On Tue, 11 Apr 2006, Mark Adler wrote:

> On Apr 11, 2006, at 4:39 PM, Cosmin Truta wrote:
> > From a practical point of view, I'd say IIABDFI.
>
> The thing that I'm looking for an easy fix for are complaints about
> shared library support or lack thereof on various setups

I see.  Well, zlib package maintainers on various systems do build the
shared zlib, either by running the supplied configure/Makefile directly,
or by using their own scripts. It is their job that gets easier if they
send you the magic incantation required to build the shared library,
that you can add to $LDSHARED and friends in configure.

> and the inability to make a shared and static library at the same
> time.

That can be easily fixed.  Maybe I can do it over this weekend, or maybe
next weekend.  The idea is to build .o files from .c files using the
static build settings, and to build .pic.o files from .c files using the
shared build settings ($SFLAGS).  This way, the object files can
coexist, and you can build both the static and the shared libs as
separate targets.

By doing this, the configure script has to be changed, but it shouldn't
become more complicated.  One thing is sure, the user shouldn't supply
the --shared option anymore.


Best regards,
Cosmin




More information about the Zlib-devel mailing list