summaryrefslogtreecommitdiffstats
path: root/libblkid
diff options
context:
space:
mode:
authorKarel Zak2012-08-02 20:19:14 +0200
committerKarel Zak2012-08-02 20:19:14 +0200
commit43ffdc82fa3ef632638cf5e6899811fc4b01d351 (patch)
treeb3198dfb07c36da4e6ec89d8d3a8c417b6c93397 /libblkid
parentwdctl: tiny change to man page (diff)
downloadkernel-qcow2-util-linux-43ffdc82fa3ef632638cf5e6899811fc4b01d351.tar.gz
kernel-qcow2-util-linux-43ffdc82fa3ef632638cf5e6899811fc4b01d351.tar.xz
kernel-qcow2-util-linux-43ffdc82fa3ef632638cf5e6899811fc4b01d351.zip
build-sys: don't compile lib{mount,blkid} tests when --disable-static specified
The tests often depend on private (non-API) library functions. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid')
-rw-r--r--libblkid/src/Makemodule.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/libblkid/src/Makemodule.am b/libblkid/src/Makemodule.am
index b168c7c1e..de6045801 100644
--- a/libblkid/src/Makemodule.am
+++ b/libblkid/src/Makemodule.am
@@ -131,6 +131,7 @@ EXTRA_DIST += \
libblkid/src/blkid.sym \
libblkid/src/blkid.h.in
+if BUILD_LIBBLKID_TESTS
check_PROGRAMS += \
test_blkid_cache \
test_blkid_config \
@@ -210,6 +211,9 @@ test_blkid_verify_CFLAGS = $(blkid_tests_cflags)
test_blkid_verify_LDFLAGS = $(blkid_tests_ldflags)
test_blkid_verify_LDADD = $(blkid_tests_ldadd)
+endif # BUILD_LIBBLKID_TESTS
+
+
# move lib from $(usrlib_execdir) to $(libdir) if needed
install-exec-hook-libblkid:
if test "$(usrlib_execdir)" != "$(libdir)"; then \