summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2010-04-29 15:34:14 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2010-04-29 15:34:14 +0200
commit60c649bc4e8281b8b6018afa76fc050fa5fd3681 (patch)
tree9eb47df092cf060a6bac28451dba2937120d216e /src
parent939c36e527344a36450f0e1627907f674d6b448e (diff)
Add missing CXXFLAGS equivalents of CFLAGS
Diffstat (limited to 'src')
-rw-r--r--src/rebar_port_compiler.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl
index 213f3d0..404e23a 100644
--- a/src/rebar_port_compiler.erl
+++ b/src/rebar_port_compiler.erl
@@ -325,12 +325,15 @@ default_env() ->
{"ERLANG_TARGET", rebar_utils:get_arch()},
{"solaris.*-64$", "CFLAGS", "-D_REENTRANT -m64"}, % Solaris specific flags
+ {"solaris.*-64$", "CXXFLAGS", "-D_REENTRANT -m64"},
{"solaris.*-64$", "LDFLAGS", "-m64"},
{"darwin9.*-64$", "CFLAGS", "-m64"}, % OS X Leopard flags for 64-bit
+ {"darwin9.*-64$", "CXXFLAGS", "-m64"},
{"darwin9.*-64$", "LDFLAGS", "-arch x86_64"},
{"darwin10.*-32", "CFLAGS", "-m32"}, % OS X Snow Leopard flags for 32-bit
+ {"darwin10.*-32", "CXXFLAGS", "-m32"},
{"darwin10.*-32", "LDFLAGS", "-arch i386"}
].