aedc42
diff -up dump-0.4b44/configure.in.buildfix dump-0.4b44/configure.in
aedc42
--- dump-0.4b44/configure.in.buildfix	2011-06-14 14:37:49.659652746 +0200
aedc42
+++ dump-0.4b44/configure.in	2011-06-14 14:40:47.361349814 +0200
aedc42
@@ -415,6 +415,11 @@ if test "$ext2fs_h" = no -o "x$EXT2FS_LI
aedc42
 	AC_MSG_ERROR(You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs)
aedc42
 fi
aedc42
 
aedc42
+PKG_CHECK_MODULES(COM_ERR, [com_err])
aedc42
+if test -n "$STATIC" ; then
aedc42
+	COM_ERR_LIBS=`$PKG_CONFIG --libs --static com_err`
aedc42
+fi
aedc42
+
aedc42
 dnl
aedc42
 dnl Check for ext2fs_read_inode_full
aedc42
 dnl
aedc42
diff -up dump-0.4b44/MCONFIG.in.buildfix dump-0.4b44/MCONFIG.in
aedc42
--- dump-0.4b44/MCONFIG.in.buildfix	2011-06-14 14:41:00.869323616 +0200
aedc42
+++ dump-0.4b44/MCONFIG.in	2011-06-14 14:41:12.947300187 +0200
aedc42
@@ -40,7 +40,7 @@ GINC+=		@EXT2FS_CFLAGS@
aedc42
 # indicate where the ext2fs library can be found (this is not needed if you
aedc42
 # have run `make install-libs' in the e2fsprogs source directory).
aedc42
 #GLIBDIR=	-L/usr/src/e2fsprogs-0.5c/lib
aedc42
-GLIBS=		$(GLIBDIR) -L../compat/lib -lcompat @EXT2FS_LIBS@
aedc42
+GLIBS=		$(GLIBDIR) -L../compat/lib -lcompat @EXT2FS_LIBS@ @COM_ERR_LIBS@
aedc42
 
aedc42
 #
aedc42
 # Definitions (don't change them unless you know what you are doing)