diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk index ee0b3674de..3ae42b2312 100644 --- a/package/polkit/polkit.mk +++ b/package/polkit/polkit.mk @@ -26,6 +26,13 @@ POLKIT_CONF_OPTS = \ --disable-libelogind \ --disable-libsystemd-login +ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) +POLKIT_CONF_OPTS += --enable-introspection +POLKIT_DEPENDENCIES += gobject-introspection +else +POLKIT_CONF_OPTS += --disable-introspection +endif + ifeq ($(BR2_PACKAGE_LINUX_PAM),y) POLKIT_DEPENDENCIES += linux-pam POLKIT_CONF_OPTS += --with-authfw=pam