Skip to content
Permalink
Browse files
Make with -lstdc++ on BSD systems
Without linking with libstdc++ snappy_nif builds fine, but fails to
load in runtime which causes confusing errors from CouchDB side.
  • Loading branch information
kxepal committed Apr 3, 2015
1 parent 8e008be commit 347a8d73029f8dfc01c063068f903931361fc835
Showing 1 changed file with 2 additions and 1 deletion.
@@ -5,7 +5,8 @@
"c_src/snappy/*.cc"]}.
{port_env, [
{"CXXFLAGS", "$CXXFLAGS -DNDEBUG"},
{"(linux|solaris)", "LDFLAGS", "$LDFLAGS -lstdc++"}
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin)",
"LDFLAGS", "$LDFLAGS -lstdc++"}
]}.
{so_name, "snappy_nif.so"}.
{eunit_opts, [verbose]}.

0 comments on commit 347a8d7

Please sign in to comment.