Hi,
This patch makes lzlib 0.6 build on MSYS/MinGW.
There is also a dll called "liblz.so.6" created similar with Linux
builds, dll names do not cause any issues. In any case, linking directly
to liblz.so.6 and skipping the import lib works too.
To make it named ".dll", just use:
c++ -shared -o liblz-6.dll sh_decoder.o sh_encoder.o sh_lzlib.o
-Wl,-out-implib,libz.dll.a
Unfortunately I was unable to get the lzcheck test to pass, it
mysteriously segfaults right after entering main(). It happens with
mingw, mingw-w64, and msvc2008.
Patch tested with Gentoo and MinGW.
btw, I noticed that main() has const parameters, is it intentional?
"make distclean" also does not clean up lzcheck.o.