[Zlib-devel] [patch] makefile.msc for 1.2.3.9
William A. Rowe Jr.
wrowe at rowe-clan.net
Thu Mar 4 21:48:55 EST 2010
Two few very cosmetic improvents;
Since we are just going through the paces, it might be worth having
a designated SUBREVISION (e.g. 9 in this case), so in zlib.h;
#define ZLIB_VERSION "1.2.3.9"
#define ZLIB_VERNUM 0x1239
#define ZLIB_VER_MAJOR 1
#define ZLIB_VER_MINOR 2
#define ZLIB_VER_REVISION 3
#define ZLIB_VER_SUBREVISION 9
and this gives us the opportunity to tag the binary as 1.2.3.9 by changing
the FILEVERSION and PRODUCTVERSION tags in win32/zlib.rc to read
ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,ZLIB_VER_SUBREVISION
so it will no longer read 1.2.3.0.
The second change, in win32/makefile.msc; is to consider the -base option;
$(LD) $(LDFLAGS) -def:win32/zlib.def -dll -implib:$(IMPLIB) \
-out:$@ -base:0x5A4C0000 $(OBJS) $(OBJA) zlib1.res
which is really very simple. By default, all .dll's load at 0x10000000, and
of course only one will succeed (which is rarely zlib as the first). So this
change suggests an arbitrary address "ZL" to load at, by default. If there
is a module clashing at page 0x5A4C, a .dll may be relocated. But this is an
improvement over the current situation, in which zlib1.dll is always relocated.
More information about the Zlib-devel
mailing list