From: Baruch Siach Date: Tue, 10 Oct 2017 19:30:15 +0000 (+0300) Subject: lvm2: optionally depend on libselinux X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11683002c69ea8b243980e68f5cad3f79b268757;p=buildroot.git lvm2: optionally depend on libselinux Signed-off-by: Baruch Siach Signed-off-by: Peter Korsgaard --- 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