From 6401829638b74907edf7943522330e5539ddeb93 Mon Sep 17 00:00:00 2001 From: Robert Newson Date: Thu, 9 Nov 2023 18:49:07 +0000 Subject: [PATCH] try to fix mac silicon and Windows Build incorporating https://github.com/esl/fast_pbkdf2/pull/4 for now --- src/fast_pbkdf2/rebar.config | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fast_pbkdf2/rebar.config b/src/fast_pbkdf2/rebar.config index a0ef529ca89..7b909f82b01 100644 --- a/src/fast_pbkdf2/rebar.config +++ b/src/fast_pbkdf2/rebar.config @@ -39,8 +39,10 @@ % From files ["c_src/*.c"], % Using options - [ {env, [{"CFLAGS", "$CFLAGS -std=c99 -O3 -g -Wall -Wextra -fPIC"}, - {"LDLIBS", "$LDLIBS -lcrypto"}, + [ {env, [{"(linux|solaris|darwin|freebsd)", "CFLAGS", "$CFLAGS -std=c99 -O3 -g -Wall -Wextra -fPIC"}, + {"win32", "CFLAGS", "$CFLAGS /O2 /DNDEBUG /Wall"}, + {"(linux|solaris|darwin|freebsd)", "LDLIBS", "$LDLIBS -lcrypto -L /opt/homebrew/lib/"}, + {"win32", "LDLIBS", "$LDLIBS libcrypto.lib"}, {"DRV_LINK_TEMPLATE", "$DRV_LINK_TEMPLATE $LDLIBS"}]}] } ]}.