Skip to content

Commit

Permalink
solaris compatibility
Browse files Browse the repository at this point in the history
This patch adds the required compiler flags to compile erlang-bcrypt under SmartOS.
  • Loading branch information
Licenser committed Jan 11, 2014
1 parent 820283b commit de91d59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rebar.config
Expand Up @@ -7,6 +7,7 @@
{port_env, {port_env,
[{"DRV_LDFLAGS","-shared $ERL_LDFLAGS -lpthread"}, [{"DRV_LDFLAGS","-shared $ERL_LDFLAGS -lpthread"},
{"darwin", "DRV_LDFLAGS", "-bundle -flat_namespace -undefined suppress $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"}]}.


{port_specs, [{"priv/bcrypt_nif.so", ["c_src/*.c"]}]}. {port_specs, [{"priv/bcrypt_nif.so", ["c_src/*.c"]}]}.
Expand Down

0 comments on commit de91d59

Please sign in to comment.