[Buildroot] [git commit branch/2022.02.x] package/bind: add json-c optional dependency
Peter Korsgaard
peter at korsgaard.com
Tue Aug 16 20:09:20 UTC 2022
commit: https://git.buildroot.net/buildroot/commit/?id=9cc76357b58373dd9673a0bd956165476739056b
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.02.x
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
(cherry picked from commit fbdcd551343a9cc6469f46d0066119cc182052d2)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/bind/bind.mk | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/package/bind/bind.mk b/package/bind/bind.mk
index 86049d3648..bd12f7ad31 100644
--- a/package/bind/bind.mk
+++ b/package/bind/bind.mk
@@ -33,7 +33,6 @@ BIND_CONF_ENV = \
BIND_CONF_OPTS = \
--without-cmocka \
--without-lmdb \
- --with-json-c=no \
--enable-epoll \
--disable-backtrace \
--with-openssl=$(STAGING_DIR)/usr
@@ -47,6 +46,13 @@ else
BIND_CONF_OPTS += --without-zlib
endif
+ifeq ($(BR2_PACKAGE_JSON_C),y)
+BIND_CONF_OPTS += --with-json-c
+BIND_DEPENDENCIES += json-c
+else
+BIND_CONF_OPTS += --without-json-c
+endif
+
ifeq ($(BR2_PACKAGE_LIBCAP),y)
BIND_CONF_OPTS += --enable-linux-caps
BIND_DEPENDENCIES += libcap
More information about the buildroot
mailing list