Skip to content

Commit d18e2fc

Browse files
authored
Fix linking on newer SmartOS versions (#7)
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).
1 parent c2156ff commit d18e2fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rebar.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{port_env, [
88
{"DRV_LDFLAGS","-shared $ERL_LDFLAGS -lpthread"},
99
{"darwin", "DRV_LDFLAGS", "-bundle -flat_namespace -undefined suppress $ERL_LDFLAGS -lpthread"},
10-
{"solaris", "ERL_LDFLAGS", "-lssp -lnsl $ERL_LDFLAGS"},
10+
{"solaris", "ERL_LDFLAGS", "-lxnet -lssp -lnsl $ERL_LDFLAGS"},
1111
{"DRV_CFLAGS","-Ic_src -Wall -fPIC $ERL_CFLAGS"},
1212
{"LDFLAGS", "$LDFLAGS -lpthread"}
1313
]}.

0 commit comments

Comments
 (0)