Permalink
Browse files

Fix rebar.config so for arm

-m32 is not a valid gcc param on arm
  • Loading branch information...
1 parent 51b8c5e commit a85fe35f5a08a38280173fcd3cc904770c867160 @stefanrusek stefanrusek committed Feb 7, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 rebar.config
View
@@ -2,10 +2,10 @@
{port_specs, [{"priv/erlsha2_nif.so", ["c_src/erlsha2_nif.c"]}]}.
{port_env, [{"DRV_CFLAGS", "$DRV_CFLAGS -O3 -I."},
- {"linux.*-32$", "CFLAGS", "-m32"},
- {"linux.*-32$", "LDFLAGS", "-m32"},
- {"linux.*-64$", "CFLAGS", "-m64"},
- {"linux.*-64$", "LDFLAGS", "-m64"}]}.
+ {"(?<!-arm)-[^-]+-linux.*-32$", "CFLAGS", "-m32"},
+ {"(?<!-arm)-[^-]+-linux.*-32$", "LDFLAGS", "-m32"},
+ {"(?<!-arm)-[^-]+-linux.*-64$", "CFLAGS", "-m64"},
+ {"(?<!-arm)-[^-]+-linux.*-64$", "LDFLAGS", "-m64"}]}.
{pre_hooks, [{compile, "c_src/config.sh c_src/config.h"},
{clean, "rm -f c_src/config.h"}]}.

0 comments on commit a85fe35

Please sign in to comment.