aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-06-05 16:52:51 +0300
committerLoïc Hoguin <[email protected]>2015-06-05 16:52:51 +0300
commit9056a8104dbac611c7020872df1684d62f55301d (patch)
tree42a98dd5011bdfb2bffa30c997929cff41ba8521
parent8e285049a1ba6768b238d507b3acbe89a634fc89 (diff)
downloaderlang.mk-9056a8104dbac611c7020872df1684d62f55301d.tar.gz
erlang.mk-9056a8104dbac611c7020872df1684d62f55301d.tar.bz2
erlang.mk-9056a8104dbac611c7020872df1684d62f55301d.zip
Define CC when calling hooks
Necessary to make erlsha2 work properly.
-rw-r--r--core/deps.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/deps.mk b/core/deps.mk
index b8027e1..e536337 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -274,10 +274,10 @@ define dep_autopatch_rebar.erl
{'get-deps', Cmd} ->
Write("\npre-deps::\n\t" ++ PatchHook(Cmd) ++ "\n");
{compile, Cmd} ->
- Write("\npre-app::\n\t" ++ PatchHook(Cmd) ++ "\n");
+ Write("\npre-app::\n\tCC=$$$$\(CC) " ++ PatchHook(Cmd) ++ "\n");
{Regex, compile, Cmd} ->
case rebar_utils:is_arch(Regex) of
- true -> Write("\npre-app::\n\t" ++ PatchHook(Cmd) ++ "\n");
+ true -> Write("\npre-app::\n\tCC=$$$$\(CC) " ++ PatchHook(Cmd) ++ "\n");
false -> ok
end;
_ -> ok