Permalink
Browse files

Compiler flags on for safety!

  • Loading branch information...
1 parent 0dddb28 commit da9e5a15fa72b898b3e569017a04ec1ae898a75f Ryan Tilder committed May 26, 2010
Showing with 15 additions and 0 deletions.
  1. +15 −0 rebar.config
View
@@ -3,3 +3,18 @@
{deps, [
{ebloom, ".*", {hg, "http://hg.basho.com/ebloom", "tip"}}
]}.
+
+{port_envs, [
+ %% Solaris specific flags
+ {"solaris.*-64$", "CFLAGS", "-D_REENTRANT -m64"},
+ {"solaris.*-64$", "LDFLAGS", "-m64"},
+
+ %% OS X Leopard flags for 64-bit
+ {"darwin9.*-64$", "CFLAGS", "-m64"},
+ {"darwin9.*-64$", "LDFLAGS", "-arch x86_64"},
+
+ %% OS X Snow Leopard flags for 32-bit
+ {"darwin10.*-32$", "CFLAGS", "-m32"},
+ {"darwin10.*-32$", "LDFLAGS", "-arch i386"}
+ ]}.
+

0 comments on commit da9e5a1

Please sign in to comment.