Makefile.in (check): Use LD_LIBRARY_PATH to run test programs.
(From Philipp Thomas <pthomas@suse.de>)
diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog
index cf4e917..6e1f824 100644
--- a/lib/ext2fs/ChangeLog
+++ b/lib/ext2fs/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-07 Theodore Tso <tytso@mit.edu>
+
+ * Makefile.in (check): Use LD_LIBRARY_PATH to run test programs.
+ (From Philipp Thomas <pthomas@suse.de>)
+
2002-02-25 Theodore Tso <tytso@mit.edu>
* ext2_fs.h: Add structure definitions for the directory indexing
diff --git a/lib/ext2fs/Makefile.in b/lib/ext2fs/Makefile.in
index 54dc160..6297abf 100644
--- a/lib/ext2fs/Makefile.in
+++ b/lib/ext2fs/Makefile.in
@@ -206,9 +206,9 @@
$(CC) -o mkjournal $(srcdir)/mkjournal.c -DDEBUG $(STATIC_LIBEXT2FS) $(LIBCOM_ERR) $(ALL_CFLAGS)
check:: tst_badblocks tst_iscan tst_byteswap
- ./tst_badblocks
- ./tst_iscan
- ./tst_byteswap
+ LD_LIBRARY_PATH=$(LIB) ./tst_badblocks
+ LD_LIBRARY_PATH=$(LIB) ./tst_iscan
+ LD_LIBRARY_PATH=$(LIB) ./tst_byteswap
installdirs::
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir) \
diff --git a/resize/ChangeLog b/resize/ChangeLog
index aaa87ba..1a0093a 100644
--- a/resize/ChangeLog
+++ b/resize/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-07 Theodore Tso <tytso@mit.edu>
+
+ * Makefile.in (check): Use LD_LIBRARY_PATH to run test programs.
+ (From Philipp Thomas <pthomas@suse.de>)
+
2002-02-24 Theodore Tso <tytso@mit.edu>
* Makefile.in (install): Remove any compressed man pages before
diff --git a/resize/Makefile.in b/resize/Makefile.in
index 6a2668f..20c747c 100644
--- a/resize/Makefile.in
+++ b/resize/Makefile.in
@@ -72,7 +72,8 @@
done
test_extent.out: test_extent $(srcdir)/test_extent.in
- ./test_extent < $(srcdir)/test_extent.in > test_extent.out
+ LD_LIBRARY_PATH=$(LIB) ./test_extent < $(srcdir)/test_extent.in \
+ > test_extent.out
check:: test_extent.out
@if cmp -s test_extent.out $(srcdir)/test_extent.in ; then \