From 11683002c69ea8b243980e68f5cad3f79b268757 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Tue, 10 Oct 2017 22:30:15 +0300 Subject: [PATCH] lvm2: optionally depend on libselinux Signed-off-by: Baruch Siach Signed-off-by: Peter Korsgaard --- package/lvm2/lvm2.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk index 79691ddec6..20e0dd0d5c 100644 --- a/package/lvm2/lvm2.mk +++ b/package/lvm2/lvm2.mk @@ -35,6 +35,13 @@ else LVM2_CONF_OPTS += --disable-readline endif +ifeq ($(BR2_PACKAGE_LIBSELINUX),y) +LVM2_CONF_OPTS += --enable-selinux +LVM2_DEPENDENCIES += libselinux +else +LVM2_CONF_OPTS += --disable-selinux +endif + ifeq ($(BR2_PACKAGE_LVM2_STANDARD_INSTALL),) LVM2_MAKE_OPTS = device-mapper LVM2_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install_device-mapper -- 2.30.2