Skip to content

Commit

Permalink
Fix linking on SmartOS/Illumos/Solaris. (#3)
Browse files Browse the repository at this point in the history
In addition to the changes discussed in #2 manually specifying
libstackprotector (-lssp) as ld flag is needed to build bcrypt on
SmartOS.
  • Loading branch information
siepkes authored and ddeboer committed Sep 28, 2017
1 parent 7ddab11 commit c2156ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{port_env, [
{"DRV_LDFLAGS","-shared $ERL_LDFLAGS -lpthread"},
{"darwin", "DRV_LDFLAGS", "-bundle -flat_namespace -undefined suppress $ERL_LDFLAGS -lpthread"},
{"solaris", "ERL_LDFLAGS", "-lnsl $ERL_LDFLAGS"},
{"solaris", "ERL_LDFLAGS", "-lssp -lnsl $ERL_LDFLAGS"},
{"DRV_CFLAGS","-Ic_src -Wall -fPIC $ERL_CFLAGS"},
{"LDFLAGS", "$LDFLAGS -lpthread"}
]}.
Expand Down

0 comments on commit c2156ff

Please sign in to comment.