[Buildroot] [PATCH] package/erlang: build host erlang with ssl support to match target

Yann E. MORIN yann.morin.1998 at free.fr
Wed Aug 13 22:27:07 UTC 2014


If the target erlang has SSL support, so shoud the host-erlang.

Suggested-by: Frank Hunleth <fhunleth at troodon-software.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Cc: Frank Hunleth <fhunleth at troodon-software.com>
Cc: Johan Oudinet <johan.oudinet at gmail.com>

---
Note: I am not sure whether this is the correct solution, to match the
host SSL support to the target SSL support. I'll let the erlang experts
enhance that patch if need be. ;-)
---
 package/erlang/erlang.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/erlang/erlang.mk b/package/erlang/erlang.mk
index 1278682..b7ff9c1 100644
--- a/package/erlang/erlang.mk
+++ b/package/erlang/erlang.mk
@@ -34,8 +34,11 @@ endif
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 ERLANG_CONF_OPT += --with-ssl
 ERLANG_DEPENDENCIES += openssl
+HOST_ERLANG_DEPENDENCIES += host-openssl
+HOST_ERLANG_CONF_OPT += --with-ssl=$(HOST_DIR)/usr
 else
 ERLANG_CONF_OPT += --without-ssl
+HOST_ERLANG_CONF_OPT += --without-ssl
 endif
 
 ifeq ($(BR2_PACKAGE_ZLIB),y)
-- 
1.9.1




More information about the buildroot mailing list