Skip to content

Commit

Permalink
Merge pull request #42 from nivertech/rebar_fix
Browse files Browse the repository at this point in the history
modify rebar.config for newer rebar versions
  • Loading branch information
yrashk committed Aug 19, 2012
2 parents 5179c87 + 39c30bf commit 0c9b0a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rebar.config
@@ -1,10 +1,12 @@
{erl_opts, [debug_info, warnings_as_errors]}.

{port_envs,
{port_env,
[{"DRV_LDFLAGS","deps/zeromq2/src/.libs/libzmq.a -shared $ERL_LDFLAGS -lstdc++ -luuid"},
{"darwin", "DRV_LDFLAGS", "deps/zeromq2/src/.libs/libzmq.a -bundle -flat_namespace -undefined suppress $ERL_LDFLAGS"},
{"netbsd", "DRV_LDFLAGS", "deps/zeromq2/src/.libs/libzmq.a -shared $ERL_LDFLAGS -lstdc++"},
{"DRV_CFLAGS","-Ic_src -Ideps/zeromq2/include -g -Wall -fPIC $ERL_CFLAGS"}]}.

{port_specs, [{"priv/erlzmq_drv.so", ["c_src/*.c"]}]}.

{pre_hooks,[{compile,"make -C c_src"},
{clean, "make -C c_src clean"}]}.

0 comments on commit 0c9b0a6

Please sign in to comment.