aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-29 04:27:00 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-29 04:29:47 +0200
commit53f5c8ab0b28f209a938f40b1e3e209bcbcdd71f (patch)
tree0ff2de446b9c5bcfb27f635884e90228693ba0fb
parentdbf3f2a478eaa8bc24a48b2e912f24cd1df35d59 (diff)
Fix build failure if tools are disabled
The xattr_benchmark program requires libcommon.a, which isn't built if the tools are not built. Since the intention of the --without-tools switch is to build libsquashfs only, this commit makes the xattr_benchmark build depend on BUILD_TOOLS. Reported-by: Matt Turner <mattst88@gmail.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--tests/libsqfs/Makemodule.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libsqfs/Makemodule.am b/tests/libsqfs/Makemodule.am
index 5ebb94b..33567b0 100644
--- a/tests/libsqfs/Makemodule.am
+++ b/tests/libsqfs/Makemodule.am
@@ -13,7 +13,9 @@ xattr_benchmark_LDADD = libcommon.a libsquashfs.la libcompat.a
LIBSQFS_TESTS = \
test_abi test_table test_xattr_writer
+if BUILD_TOOLS
noinst_PROGRAMS += xattr_benchmark
+endif
check_PROGRAMS += $(LIBSQFS_TESTS)
TESTS += $(LIBSQFS_TESTS)