Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Commit

Permalink
Fixed issue #17 priv/bcrypt not built with rebar3
Browse files Browse the repository at this point in the history
  • Loading branch information
Kozlov Yakov committed Feb 15, 2017
1 parent a63df34 commit 1b0ddea
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions rebar.config
Expand Up @@ -8,10 +8,18 @@
{"DRV_LDFLAGS","-shared $ERL_LDFLAGS -lpthread"},
{"darwin", "DRV_LDFLAGS", "-bundle -flat_namespace -undefined suppress $ERL_LDFLAGS -lpthread"},
{"solaris", "ERL_CFLAGS", "-lnsl $ERL_CFLAGS"},
{"DRV_CFLAGS","-Ic_src -Wall -fPIC $ERL_CFLAGS"}
{"DRV_CFLAGS","-Ic_src -Wall -fPIC $ERL_CFLAGS"},
{"LDFLAGS", "$LDFLAGS -lpthread"}
]}.

{port_specs, [{"priv/bcrypt_nif.so", ["c_src/*.c"]}]}.
{port_specs, [
{"priv/bcrypt_nif.so", ["c_src/*.c"]},
{"priv/bcrypt", [
"c_src/bcrypt_port.c",
"c_src/bcrypt.c",
"c_src/blowfish.c"
]}
]}.

%% These post_hooks are for rebar2. rebar.config.script removes them if
%% rebar3 is detected
Expand Down

0 comments on commit 1b0ddea

Please sign in to comment.