[Zlib-devel] zlib 1.2.4.3 for your perusal
John Bowler
jbowler at frontiernet.net
Sun Apr 11 18:53:24 EDT 2010
From: Mark Adler
>On Apr 11, 2010, at 3:59 AM, Alon Bar-Lev wrote:
>> Are you willing to let off the resource and definition within the library?
>
>Alon,
>
>I don't understand the question. Perhaps you can submit a new patch with what you are proposing.
The zlib DLL built on MinGW/MSYS using configure doesn't read win32/zlib.def (the 'definition' file) or win32/zlib1.rc (the 'resource' file). As a result it may include extra imported symbols (e.g. all the _tr_ functions); zlib.def causes these not to be exported, also zlib1.rc appends copyright info to the DLL and the use of windres with this file may cause the DLL to be used more efficiently.
Clearly both these things can be done in configure, although doing so requires a tweak to the shared library link command to accommodate the call to windres. However this requires some additional work on the configure script.
I believe Alon is proposing just to use the win32/Makefile.gcc build. My patch does that. He probably also wants the patch to Makefile.gcc (previously submitted) that makes cosmetic changes that allow additional LDFLAGS to be passed to the DLL build. The two patches are orthogonal (I believe) - I tested without Alon's patch.
John Bowler <jbowler at acm.org>
More information about the Zlib-devel
mailing list