aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-05-23 20:37:18 +0300
committerLoïc Hoguin <[email protected]>2015-05-23 20:37:18 +0300
commitf0f9f97a87c7b2dd7344f572afcc29faa20b1592 (patch)
tree9e361665aaefb9f5fdf136daad4ca135749e9999 /core/deps.mk
parent54794fd9a01668870e48a5a58b380bec4d6a9d18 (diff)
downloaderlang.mk-f0f9f97a87c7b2dd7344f572afcc29faa20b1592.tar.gz
erlang.mk-f0f9f97a87c7b2dd7344f572afcc29faa20b1592.tar.bz2
erlang.mk-f0f9f97a87c7b2dd7344f572afcc29faa20b1592.zip
Set and export ERLANG_ARCH for the whole rebar dep
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/deps.mk b/core/deps.mk
index bfd211c..64fa9e6 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -162,9 +162,10 @@ define dep_autopatch_rebar.erl
re:replace(Text, "\\\\$$$$", "\$$$$$$$$", [global, {return, list}])
end,
Write("IGNORE_DEPS = edown eper eunit_formatters meck node_package "
- "rebar_lock_deps_plugin rebar_vsn_plugin reltool_util\n\n"),
- Write("C_SRC_DIR = /path/do/not/exist\n\n"),
- Write("DRV_CFLAGS = -fPIC\nexport DRV_CFLAGS\n\n"),
+ "rebar_lock_deps_plugin rebar_vsn_plugin reltool_util\n"),
+ Write("C_SRC_DIR = /path/do/not/exist\n"),
+ Write("DRV_CFLAGS = -fPIC\nexport DRV_CFLAGS\n"),
+ Write(["ERLANG_ARCH = ", rebar_utils:wordsize(), "\nexport ERLANG_ARCH\n"]),
fun() ->
Write("ERLC_OPTS = +debug_info\n"),
case lists:keyfind(erl_opts, 1, Conf) of
@@ -319,7 +320,6 @@ define dep_autopatch_rebar.erl
[code:root_dir(), erlang:system_info(version), code:lib_dir(erl_interface, include)])),
PortSpecWrite(io_lib:format("ERL_LDFLAGS = -L ~s -lerl_interface -lei\n",
[code:lib_dir(erl_interface, lib)])),
- PortSpecWrite(["\nERLANG_ARCH = ", rebar_utils:wordsize(), "\n"]),
[PortSpecWrite(["\n", E, "\n"]) || E <- OsEnv],
FilterEnv = fun(Env) ->
lists:flatten([case E of