[Zlib-devel] [PATCH] mingw zlib import library name

Pedro Alves alves.ped at gmail.com
Sun Apr 25 21:11:48 EDT 2010


Putting both libz.dll.a and libz.a on the same directory
is a bad idea, because then, unless you specify
-static, the linked (I mean, binutils' ld) will always pick libz.dll.a over
libz.a, which would mean a behavior change in a minor release --- people
linking with -lz to always link the static libz (but not link everything
else statically,  otherwise, they'd use -static) will suddenly start
linking in the dll version.

-- 
Pedro Alves
CodeSourcery




More information about the Zlib-devel mailing list