]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsck: Set LD_LIBRARY_PATH before running "make check" programs
authorTheodore Ts'o <tytso@mit.edu>
Sun, 13 Jul 2008 19:41:35 +0000 (15:41 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 13 Jul 2008 20:06:57 +0000 (16:06 -0400)
This is needed so that "make check" works in the e2fsck library even
if the shared libraries are not yet installed, and so that we run
those programs against the version of the libraries built in the build
tree.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/Makefile.in

index 9b32a610d61c46a55e41c787cc16682992d5667e..a6541752211e2b1305fb24231bfc387d0a670bcb 100644 (file)
@@ -138,7 +138,7 @@ crc32table.h: gen_crc32table
 
 tst_crc32: $(srcdir)/crc32.c $(LIBEXT2FS)
        @$(CC) $(BUILD_LDFLAGS) $(ALL_CFLAGS) -o tst_crc32 $(srcdir)/crc32.c \
-               -DUNITTEST $(LIBEXT2FS)
+               -DUNITTEST $(LIBEXT2FS) $(LIBCOM_ERR)
 
 tst_refcount: ea_refcount.c
        @echo " LD $@"
@@ -151,9 +151,9 @@ tst_region: region.c
                $(ALL_CFLAGS) -DTEST_PROGRAM $(LIBCOM_ERR)
 
 check:: tst_refcount tst_region tst_crc32
-       ./tst_refcount
-       ./tst_region
-       ./tst_crc32
+       LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_refcount
+       LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_region
+       LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./tst_crc32
 
 extend: extend.o
        @echo " LD $@"