Description: Explicitly link against libz
 The Unarchiver fails to build in Debian's unstable distribution with
 the following error:
 .
  /usr/bin/ld: libXADMaster.a(CSZlibHandle.o): undefined reference to symbol 'inflateInit2_'
  /usr/bin/ld: note: 'inflateInit2_' is defined in DSO /usr/lib64/libz.so.1 so try adding it to the linker command line
  /usr/lib64/libz.so.1: could not read symbols: Invalid operation
 .
 ld has recently been changed to require that executables explicitly
 link against the libraries that provide the symbols used by the
 executable.  In previous versions, it was sufficient for these
 libraries to be pulled in indirectly.
Bug: http://code.google.com/p/theunarchiver/issues/detail?id=346
Author: Matt Kraai <kraai@debian.org>
Last-Update: 2011-05-12
Applied-Upstream: commit:6081ee4da8f9

--- theunarchiver-2.7.1.orig/XADMaster/Makefile.linux
+++ theunarchiver-2.7.1/XADMaster/Makefile.linux
@@ -48,6 +48,7 @@ LIBS =	-Wl,--no-whole-archive \
 	-lgnustep-base \
 	-lcrypto \
 	-lbz2 \
+	-lz \
 	-licuuc \
 	-lobjc \
 	-lstdc++ \
