Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

requires new rebar for dynamic config

typos in config script
  • Loading branch information...
commit b330ff27713d2cee1e8f4c3e2036acb37d6705b9 1 parent 48b5eea
@joecaswell joecaswell authored
Showing with 5 additions and 7 deletions.
  1. BIN  rebar
  2. +5 −7 rebar.config.script
View
BIN  rebar
Binary file not shown
View
12 rebar.config.script
@@ -4,18 +4,16 @@ Config=[
{deps, [ ]},
{deps_dir, "c_src"},
{port_envs, [
- %% Make sure to set -fPIC when compiling ossp-uuid
{"CFLAGS", "$CFLAGS -fPIC"},
{"^bsd","DRV_CFLAGS", "$DRV_CFLAGS -Werror -I c_src/uuid-1,6,2"},
{"^bsd","DRV_LDFLAGS", "$DRV_LDFLAGS c_src/uuid-1,6,2/,libs/libuuid,a"},
- %% BSD provides uuid_create natively
- {"bsd","DRV_CFLAGS", "$DRV_CFLAGS -Werror"},
- ]},
+ {"bsd","DRV_CFLAGS", "$DRV_CFLAGS -Werror"}
+ ]}
],
case rebar_utils:is_arch("bsd") of
match ->
true;
-nomatch ->
- Config1 = lists:keystore(pre_hooks, 1, Config, {pre_hooks, [{compile, "c_src/build_deps,sh"}]}),
- lists:keystore(post_hooks, 1, Config1, {post_hooks, [{clean, "c_src/build_deps,sh clean"}]})
+_ ->
+ Config1 = lists:keystore(pre_hooks, 1, Config, {pre_hooks, [{compile, "c_src/build_deps.sh"}]}),
+ lists:keystore(post_hooks, 1, Config1, {post_hooks, [{clean, "c_src/build_deps.sh clean"}]})
end.
Please sign in to comment.
Something went wrong with that request. Please try again.