]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: fix build
authorDavidlohr Bueso <dave@gnu.org>
Tue, 8 Nov 2011 23:39:46 +0000 (00:39 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Nov 2011 23:47:33 +0000 (00:47 +0100)
With the new build changes when libmount is not defined the compilation breaks:

fstab.c:440: undefined reference to `streq_except_trailing_slash'
collect2: ld returned 1 exit status
make[2]: *** [mtab_lock_test] Error 1
make[2]: Leaving directory `/home/dave/projects/ut/mount'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dave/projects/ut'
make: *** [all] Error 2

This patch adds strutils to the fstab.c rule.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
mount/Makefile.am

index 11815503bf2939bca2661db9fcd17663f5ac066a..01b9567d59355d1e7736df48ae23ad2d0844eb58 100644 (file)
@@ -102,7 +102,7 @@ endif
 
 if !BUILD_LIBMOUNT_MOUNT
 noinst_PROGRAMS = mtab_lock_test
-mtab_lock_test_SOURCES = fstab.c $(srcs_common) $(hdrs_mount)
+mtab_lock_test_SOURCES = fstab.c $(srcs_common) $(top_srcdir)/lib/strutils.c $(hdrs_mount)
 mtab_lock_test_CPPFLAGS = -DMAIN_TEST_MTABLOCK $(AM_CPPFLAGS)
 endif