summaryrefslogtreecommitdiff
path: root/disk-utils/Makefile.am
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2009-09-25 16:27:27 +0200
committerKarel Zak <kzak@redhat.com>2009-09-29 13:30:36 +0200
commit566f35bc81d992bfec0a41485eea073854f54b0e (patch)
treeb587b887fea8fae4c8b0dfa58cd1945062037b7a /disk-utils/Makefile.am
parent2e017d3b0f0ed1a060e5fa7e71a6f3bd1f2a9c27 (diff)
downloadutil-linux-old-566f35bc81d992bfec0a41485eea073854f54b0e.tar.gz
mkswap: use libblkid to detect PT
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/Makefile.am')
-rw-r--r--disk-utils/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/disk-utils/Makefile.am b/disk-utils/Makefile.am
index 6bd22bc5..852ae8a0 100644
--- a/disk-utils/Makefile.am
+++ b/disk-utils/Makefile.am
@@ -13,7 +13,7 @@ fsck_minix_SOURCES = fsck.minix.c minix.h
mkfs_minix_SOURCES = mkfs.minix.c minix.h $(utils_common)
mkfs_bfs_SOURCES = mkfs.bfs.c $(utils_common)
-mkswap_SOURCES = mkswap.c $(utils_common) ../lib/wholedisk.c ../lib/pttype.c
+mkswap_SOURCES = mkswap.c $(utils_common) ../lib/wholedisk.c
mkswap_LDADD =
mkswap_CFLAGS =
@@ -59,6 +59,12 @@ mkswap_CFLAGS += $(UUID_CFLAGS)
endif
endif
+if BUILD_LIBBLKID
+# only in-tree libblkid has partitions parsing support
+mkswap_LDADD += $(ul_libblkid_la)
+mkswap_CFLAGS += -I$(ul_libblkid_srcdir)
+endif
+
if HAVE_SELINUX
mkswap_LDADD += -lselinux
endif