summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-01-01 12:39:56 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-01-02 16:37:48 +0100
commit81cbf0bf84bb62d1b40f9ea4e30296b5ef495556 (patch)
tree2b14e6595bd4e5439e075fef662a709855501bf2
parentfffb68a83fde238523d330fc8ada63580bbc46a8 (diff)
downloadbuildroot-81cbf0bf84bb62d1b40f9ea4e30296b5ef495556.tar.gz
buildroot-81cbf0bf84bb62d1b40f9ea4e30296b5ef495556.zip
libevent: add optional dependency on OpenSSL
libevent can optionally use OpenSSL, so add an optional dependency on this package to explicit this possibility. This makes sure libevent always gets built with OpenSSL support when the OpenSSL package is enabled. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-rw-r--r--package/libevent/libevent.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/libevent/libevent.mk b/package/libevent/libevent.mk
index 607b7b2150..30fcb5ac30 100644
--- a/package/libevent/libevent.mk
+++ b/package/libevent/libevent.mk
@@ -22,5 +22,12 @@ ifneq ($(BR2_PACKAGE_PYTHON),y)
LIBEVENT_POST_INSTALL_TARGET_HOOKS += LIBEVENT_REMOVE_PYSCRIPT
endif
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+LIBEVENT_DEPENDENCIES += openssl
+LIBEVENT_CONF_OPTS += --enable-openssl
+else
+LIBEVENT_CONF_OPTS += --disable-openssl
+endif
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))
OpenPOWER on IntegriCloud