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

Frank Hunleth fhunleth at troodon-software.com
Thu Aug 14 14:43:50 UTC 2014


Yann,

On Wed, Aug 13, 2014 at 6:27 PM, Yann E. MORIN <yann.morin.1998 at free.fr> wrote:
> If the target erlang has SSL support, so shoud the host-erlang.

This patch makes sense to me. I tried it in my setup to make sure that
everything still works fine and that host-erlang is really using
host-openssl. It looks good, so.

Tested-by: Frank Hunleth <fhunleth at troodon-software.com>

Thanks,
Frank

>
> 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
>



-- 
Frank Hunleth
Troodon Software LLC
Embedded Software Development
http://troodon-software.com/


More information about the buildroot mailing list