From: Fabrice Fontaine Date: Sat, 30 Mar 2019 14:49:43 +0000 (+0100) Subject: package/rpm: add optional libcap dependency X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=951831b46f57c820fe4f7440f3870a9446e4bc82;p=buildroot.git package/rpm: add optional libcap dependency Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- diff --git a/package/rpm/rpm.mk b/package/rpm/rpm.mk index 78f429f8b6..0eb6e7f3c7 100644 --- a/package/rpm/rpm.mk +++ b/package/rpm/rpm.mk @@ -25,7 +25,6 @@ RPM_CONF_OPTS = \ --disable-rpath \ --with-external-db \ --with-gnu-ld \ - --without-cap \ --without-hackingdocs \ --without-lua @@ -36,6 +35,13 @@ else RPM_CONF_OPTS += --without-acl endif +ifeq ($(BR2_PACKAGE_LIBCAP),y) +RPM_DEPENDENCIES += libcap +RPM_CONF_OPTS += --with-cap +else +RPM_CONF_OPTS += --without-cap +endif + ifeq ($(BR2_PACKAGE_LIBNSS),y) RPM_DEPENDENCIES += libnss RPM_CONF_OPTS += --with-crypto=nss