diff --git a/package/smartmontools/smartmontools.mk b/package/smartmontools/smartmontools.mk index 6c90538f70..bad7da2d16 100644 --- a/package/smartmontools/smartmontools.mk +++ b/package/smartmontools/smartmontools.mk @@ -16,4 +16,11 @@ else SMARTMONTOOLS_CONF_OPTS += --without-libcap-ng endif +ifeq ($(BR2_PACKAGE_LIBSELINUX),y) +SMARTMONTOOLS_CONF_OPTS += --with-selinux +SMARTMONTOOLS_DEPENDENCIES += libselinux +else +SMARTMONTOOLS_CONF_OPTS += --without-selinux +endif + $(eval $(autotools-package))