Skip to content

Commit

Permalink
Fix linking on newer SmartOS versions (#7)
Browse files Browse the repository at this point in the history
Newer SmartOS versions require the 'xnet' library to be explicitly
declared to the linker. While this might not be needed on plain Solaris
this is good form non the less (since bcrypt uses symbols from the net
library).
  • Loading branch information
siepkes authored May 5, 2020
1 parent c2156ff commit d18e2fc
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", "-lssp -lnsl $ERL_LDFLAGS"},
{"solaris", "ERL_LDFLAGS", "-lxnet -lssp -lnsl $ERL_LDFLAGS"},
{"DRV_CFLAGS","-Ic_src -Wall -fPIC $ERL_CFLAGS"},
{"LDFLAGS", "$LDFLAGS -lpthread"}
]}.
Expand Down

0 comments on commit d18e2fc

Please sign in to comment.