aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-01-24 09:22:52 +0100
committerLoïc Hoguin <[email protected]>2016-01-24 09:22:52 +0100
commit06e9fbf4a93d182328c52503b187c4e83c9dc085 (patch)
treed797d01ab2784691d2198147ff1469aa12e4431f /core/deps.mk
parent8290a433489493c5929ca62dbef76d6e6564612b (diff)
downloaderlang.mk-06e9fbf4a93d182328c52503b187c4e83c9dc085.tar.gz
erlang.mk-06e9fbf4a93d182328c52503b187c4e83c9dc085.tar.bz2
erlang.mk-06e9fbf4a93d182328c52503b187c4e83c9dc085.zip
Quote paths in autopatch generated Makefile
Fixes build of a few projects on Windows.
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/deps.mk b/core/deps.mk
index 1be270b..16a2f88 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -314,9 +314,9 @@ define dep_autopatch_rebar.erl
[] -> ok;
_ ->
Write("\npre-app::\n\t$$\(MAKE) -f c_src/Makefile.erlang.mk\n"),
- PortSpecWrite(io_lib:format("ERL_CFLAGS = -finline-functions -Wall -fPIC -I ~s/erts-~s/include -I ~s\n",
+ PortSpecWrite(io_lib:format("ERL_CFLAGS = -finline-functions -Wall -fPIC -I \\"~s/erts-~s/include\\" -I \\"~s\\"\n",
[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",
+ PortSpecWrite(io_lib:format("ERL_LDFLAGS = -L \\"~s\\" -lerl_interface -lei\n",
[code:lib_dir(erl_interface, lib)])),
[PortSpecWrite(["\n", E, "\n"]) || E <- OsEnv],
FilterEnv = fun(Env) ->