[Zlib-devel] zlib-1.2.4 build failure on MSYS/1.0, MinGW (gcc 3.4.5)
John Bowler
jbowler at frontiernet.net
Wed Mar 17 14:42:46 EDT 2010
The shared lib link fails on a current MSYS/MinGW system (by 'current' I mean installed by the installer - not by hand - I don't know about that configuration):
$ make
gcc -shared -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -o libz.so.1.2.4 adler32.lo compress.lo crc32.lo deflate.lo gzclose.lo gzlib.lo gzread.lo gzwrite.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo uncompr.lo zutil.lo -lc
g:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lc
collect2: ld returned 1 exit status
make: *** [libz.so.1.2.4] Error 1
Removing the '-lc' fixes the problem (there's no libc.a in my MinGW system.) It's hardly a significant problem and probably a bug in MSYS/MinGW rather than zlib.
John Bowler <jbowler at acm.org>
More information about the Zlib-devel
mailing list