Browse files

Fixing build problems (issue #61)

This commit upgrades the current agnerized version being used by
the Makefile. This prompted changes to the rebar config.

The true build problems were caused by the merge #63, which added
a fix to the -include_lib path to better work with release.
However, this introduced a problem when compiling with rebar
given rebar calls 'erlc', which ignores all ERL_LIBS options
and thus will only support the default system libs (apparently).

This commit adds a macro definition to rebar.config and a
preprocessor switch to the socketio_listener module (which had
the include_lib changed) so that when compiled from rebar, we
use the old code that worked, and when going without rebar, we
use the fix that existed.

Hopefully that will make everyone happy.
  • Loading branch information...
ferd committed Sep 16, 2011
1 parent 31955a7 commit 20feb3194eafbec42ddb19a2330ae152ff5d7da2
Showing with 9 additions and 4 deletions.
  1. BIN rebar
  2. +4 −3 rebar.config
  3. +5 −1 src/socketio_listener.erl
BIN rebar
Binary file not shown.
@@ -1,8 +1,9 @@
-{rebar_plugins, [agner_rebar_plugin]}.
+{plugins, [agner_rebar_plugin]}.
{lib_dirs, ["deps", "deps/jsx/deps/","deps/ex_uri/deps"]}.
-{erl_opts, [debug_info,
+{erl_opts, [debug_info,
- {i,"deps/ex_uri/include/"}
+ {i,"deps/ex_uri/include/"},
{post_hooks, [{'get-deps', "git submodule init"},
{'get-deps', "git submodule update"},
@@ -1,7 +1,11 @@
%% API
-export([start/1, server/1]).

0 comments on commit 20feb31

Please sign in to comment.