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"}]}] } ]}.