Skip to content

Commit c2156ff

Browse files
siepkesddeboer
authored andcommitted
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.
1 parent 7ddab11 commit c2156ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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", "-lnsl $ERL_LDFLAGS"},
10+
{"solaris", "ERL_LDFLAGS", "-lssp -lnsl $ERL_LDFLAGS"},
1111
{"DRV_CFLAGS","-Ic_src -Wall -fPIC $ERL_CFLAGS"},
1212
{"LDFLAGS", "$LDFLAGS -lpthread"}
1313
]}.

0 commit comments

Comments
 (0)