OSDN Git Service

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 9b32a61..a654175 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 $@"