lvm2: optionally depend on libselinux
authorBaruch Siach <baruch@tkos.co.il>
Tue, 10 Oct 2017 19:30:15 +0000 (22:30 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 10 Oct 2017 20:04:22 +0000 (22:04 +0200)
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/lvm2/lvm2.mk

index 79691ddec6f665d4d5745e53d7b041e06bf5d545..20e0dd0d5c36c75e2ec3764871da6ff6d32b2d5d 100644 (file)
@@ -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