From d18e2fc824eb05b08621eabded50c9c3e112b10e Mon Sep 17 00:00:00 2001 From: Jasper Siepkes Date: Tue, 5 May 2020 14:42:08 +0200 Subject: [PATCH] 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). --- rebar.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebar.config b/rebar.config index db22df6..adab735 100644 --- a/rebar.config +++ b/rebar.config @@ -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"} ]}.