From 53f5c8ab0b28f209a938f40b1e3e209bcbcdd71f Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 29 Mar 2021 04:27:00 +0200 Subject: 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 Signed-off-by: David Oberhollenzer --- tests/libsqfs/Makemodule.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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) -- cgit v1.2.3