wrapper: give zlib wrappers their own translation unit
authorJonathan Nieder <jrnieder@gmail.com>
Sat, 6 Nov 2010 11:47:34 +0000 (06:47 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Nov 2010 19:07:51 +0000 (11:07 -0800)
commitb0613ce0f9ef3fd111f8c75b84ddd12f9f04fc87
tree9e16b5073782a6058380afc46d59479bea93baf8
parent6bab74e7fb89b7427e5ef24b48a07fe9450c40e7
wrapper: give zlib wrappers their own translation unit

Programs using xmalloc() but not git_inflate() require -lz on the
linker command line because git_inflate() is in the same translation
unit as xmalloc().

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
wrapper.c
zlib.c [new file with mode: 0644]