lzip-bug
[Top][All Lists]
Advanced

[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:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0

On 10/17/2009 11:27, JonY wrote:
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.

Hi,

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]