[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lzip-bug] Re: [PATCH] lzlib on Windows

From: JonY
Subject: [Lzip-bug] Re: [PATCH] lzlib on Windows
Date: Sat, 17 Oct 2009 11:35:20 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20080213 Thunderbird/ Mnenhy/

On 10/17/2009 11:27, JonY wrote:

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

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.


I forgot to patch Makefile.in, new patch attached.

Attachment: w32.patch
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]