--- gnucash-2.2.5/src/backend/file/Makefile.am.orig	2008-05-29 23:01:15.000000000 +0200
+++ gnucash-2.2.5/src/backend/file/Makefile.am	2008-05-29 23:22:20.000000000 +0200
@@ -62,7 +62,7 @@
    ${GLIB_LIBS} ${GCONF_LIBS} ${LIBXML2_LIBS} \
    ${top_builddir}/src/engine/libgncmod-engine.la \
    ${top_builddir}/src/core-utils/libgnc-core-utils.la \
-   ${QOF_LIBS}
+   ${QOF_LIBS} -lz
 
 libgncmod_backend_file_la_LDFLAGS = -module -avoid-version
 libgncmod_backend_file_la_LIBADD = \
