Permalink
Browse files

Merge pull request #42 from nivertech/rebar_fix

modify rebar.config for newer rebar versions
  • Loading branch information...
2 parents 5179c87 + 39c30bf commit 0c9b0a695a5795cd624dde183ff739b17e820b3b @yrashk yrashk committed Aug 19, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 rebar.config
View
@@ -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.