processone / fast_tls

TLS / SSL OpenSSL-based native driver for Erlang / Elixir
https://www.ejabberd.im
Other
83 stars 37 forks source link

fix macOS compilation #37

Closed frankmullerl closed 5 years ago

frankmullerl commented 6 years ago

This will fix compile error on macOS (any version):

[...]
Compiling fast_tls/c_src/fast_tls.c
fast_tls/c_src/fast_tls.c:21:10: fatal error: 'openssl/err.h' file not found
#include <openssl/err.h>
         ^~~~~~~~~~~~~~~
1 error generated.
ERROR: compile failed while processing fast_tls: rebar_abort
nosnilmot commented 6 years ago

There is no "compile error on macOS" that needs fixing - you should set CFLAGS/LDFLAGS as required for your environment, before compilation.

You are presumably using Homebrew installed openssl, but not everyone on macos will be doing so, and even some that do may want to use openssl 1.1.x which is in a different location.