Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] libevent: add optional dependency on OpenSSL
@ 2015-01-01 11:39 Thomas Petazzoni
  2015-01-02 14:59 ` Yann E. MORIN
  2015-01-02 15:38 ` Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2015-01-01 11:39 UTC (permalink / raw)
  To: buildroot

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>
---
 package/libevent/libevent.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/libevent/libevent.mk b/package/libevent/libevent.mk
index 607b7b2..30fcb5a 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))
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-02 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-01 11:39 [Buildroot] [PATCH] libevent: add optional dependency on OpenSSL Thomas Petazzoni
2015-01-02 14:59 ` Yann E. MORIN
2015-01-02 15:38 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox