From c2156fff699908e6087bdcd1255c26ffffeacfae Mon Sep 17 00:00:00 2001 From: Jasper Siepkes Date: Thu, 28 Sep 2017 14:53:31 +0200 Subject: [PATCH] Fix linking on SmartOS/Illumos/Solaris. (#3) In addition to the changes discussed in #2 manually specifying libstackprotector (-lssp) as ld flag is needed to build bcrypt on SmartOS. --- rebar.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebar.config b/rebar.config index 49948f3..db22df6 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", "-lnsl $ERL_LDFLAGS"}, + {"solaris", "ERL_LDFLAGS", "-lssp -lnsl $ERL_LDFLAGS"}, {"DRV_CFLAGS","-Ic_src -Wall -fPIC $ERL_CFLAGS"}, {"LDFLAGS", "$LDFLAGS -lpthread"} ]}.