Skip to content

Commit

Permalink
try to fix mac silicon and Windows Build
Browse files Browse the repository at this point in the history
incorporating esl/fast_pbkdf2#4 for now
  • Loading branch information
rnewson committed Nov 9, 2023
1 parent 12bf909 commit 6401829
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/fast_pbkdf2/rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -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"}]}]
}
]}.
Expand Down

0 comments on commit 6401829

Please sign in to comment.