summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/lvm2/lvm2.mk7
1 files changed, 7 insertions, 0 deletions
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
OpenPOWER on IntegriCloud