Browse files

fix rebar deprecation warnings

The rebar build tool has undergone changes over the past few months,
deprecating some features that erlsha2 happens to use and replacing
them with new features. Update rebar.config to the new features,
thereby avoiding deprecation warnings.
  • Loading branch information...
1 parent 9d2d261 commit db1e0aeb09b2f62d4286bc851b3781a008803acd @vinoski committed Mar 12, 2012
Showing with 9 additions and 6 deletions.
  1. +3 −0
  2. +6 −6 rebar.config
@@ -38,6 +38,9 @@ implementation, thereby gaining access to the pure Erlang
implementation instead, but note that it's much slower than the C
+If you run into any build trouble, first make sure the version of
+`rebar` you're using is reasonably up to date.
### Erlang Version
The **erlsha2** app requires Erlang R14B or later.
@@ -1,11 +1,11 @@
%% -*- erlang -*-
-{so_name, ""}.
+{port_specs, [{"priv/", ["c_src/erlsha2_nif.c"]}]}.
-{port_envs, [{"DRV_CFLAGS", "$DRV_CFLAGS -O3 -I."},
- {"linux.*-32$", "CFLAGS", "-m32"},
- {"linux.*-32$", "LDFLAGS", "-m32"},
- {"linux.*-64$", "CFLAGS", "-m64"},
- {"linux.*-64$", "LDFLAGS", "-m64"}]}.
+{port_env, [{"DRV_CFLAGS", "$DRV_CFLAGS -O3 -I."},
+ {"linux.*-32$", "CFLAGS", "-m32"},
+ {"linux.*-32$", "LDFLAGS", "-m32"},
+ {"linux.*-64$", "CFLAGS", "-m64"},
+ {"linux.*-64$", "LDFLAGS", "-m64"}]}.
{pre_hooks, [{compile, "c_src/ c_src/config.h"},
{clean, "rm -f c_src/config.h"}]}.

0 comments on commit db1e0ae

Please sign in to comment.