Merge pull request #260 from dgud/dgud/windows-fix-paths

Quote include/lib paths
This commit is contained in:
Fred Hebert 2014-06-18 11:26:29 -04:00
commit e1237caee5

View file

@ -565,10 +565,10 @@ default_env() ->
{"EXE_CFLAGS" , "-g -Wall -fPIC $ERL_CFLAGS"}, {"EXE_CFLAGS" , "-g -Wall -fPIC $ERL_CFLAGS"},
{"EXE_LDFLAGS", "$ERL_LDFLAGS"}, {"EXE_LDFLAGS", "$ERL_LDFLAGS"},
{"ERL_CFLAGS", lists:concat([" -I", erl_interface_dir(include), {"ERL_CFLAGS", lists:concat([" -I\"", erl_interface_dir(include),
" -I", filename:join(erts_dir(), "include"), "\" -I\"", filename:join(erts_dir(), "include"),
" "])}, "\" "])},
{"ERL_EI_LIBDIR", erl_interface_dir(lib)}, {"ERL_EI_LIBDIR", lists:concat(["\"", erl_interface_dir(lib), "\""])},
{"ERL_LDFLAGS" , " -L$ERL_EI_LIBDIR -lerl_interface -lei"}, {"ERL_LDFLAGS" , " -L$ERL_EI_LIBDIR -lerl_interface -lei"},
{"ERLANG_ARCH" , rebar_utils:wordsize()}, {"ERLANG_ARCH" , rebar_utils:wordsize()},
{"ERLANG_TARGET", rebar_utils:get_arch()}, {"ERLANG_TARGET", rebar_utils:get_arch()},