[Zlib-devel] zlib 1.2.4 released

Volker Grabsch vog at notjusthosting.com
Sun Mar 14 09:48:10 EDT 2010


Mark Adler <madler at alumni.caltech.edu> schrieb:
> On Mar 12, 2010, at 12:03 PM, Volker Grabsch wrote:
> > There appears to be a problem in Makefile.in, too, because there
> > are at least two commands which assume that $(SHAREDLIB) as well
> > as $(SHAREDLIBV) and $(STATICLIB) are always nonempty:
> 
> The patch for this is below.

Thanks! It works perfectly.

BTW, I'm using "./configure --static" for Win32 cross compiling.

Okay, you can't build a DLL file with "./configure && make", but
I'm not interested in that anyway.

However, "./configure --static && make" has the advantage that it
generates and installs pkgconfig/zlib.pc, which is important when
you have many libraries using pkg-config, where some package
dependencies point to zlib.pc.

Unfortunately, the "make -f win32/Makefile.gnu" doesn't create
and install zlib.pc.

So for future development, I'd propose to either build and install
zlib.pc in win32/Makefile.gnu, or to remove win32/Makefile.gnu
entirely and make "./configure && make" working for win32 shared
libraries (DLL files). I guess there is a lot of code duplication
between win32/Makefile.gnu and Makefile.in anyway.


For the sake of completeness, here are the (simplified) build command
which I'll use in mingw-cross-env [1] to cross compile zlib-1.2.4:

    CC='i686-pc-mingw32-gcc' \
    AR='i686-pc-mingw32-ar' \
    RANLIB='i686-pc-mingw32-ranlib' \
    ./configure \
        --prefix='...' \
        --static

    make install


Greets,

    Volker


[1] http://mingw-cross-env.nongnu.org/

-- 
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR




More information about the Zlib-devel mailing list