diff options
Diffstat (limited to 'disk-utils/Makefile.am')
-rw-r--r-- | disk-utils/Makefile.am | 8 |
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 |