Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

modify rebar.config for newer rebar versions #42

Merged
merged 1 commit into from

2 participants

@oribrost

When using newest rebar to compile erlzmq2 (rebar team recommends compiling newest rebar and putting in OS PATH), the port .so did not get compiled. This patch should fix it.

@nivertech

@yrashk
Owner

Does it work with older rebars (to a certain extent, of course!) well or you haven't checked that yet?

I think it would make sense to include an updated rebar binary as well

@yrashk yrashk merged commit 0c9b0a6 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 5, 2012
  1. @oribrost
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 rebar.config
View
4 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"}]}.
Something went wrong with that request. Please try again.