Fixes some projects that were building but couldn't be loaded because the .so file name was incorrect.
@@ -185,6 +185,14 @@ define dep_autopatch_rebar.erl
end
end(),
fun() ->
+ case lists:keyfind(port_specs, 1, Conf) of
+ {_, [{Output, _}]} ->
+ filelib:ensure_dir("$(DEPS_DIR)/$(1)/" ++ Output),
+ Write("C_SRC_OUTPUT = " ++ Output ++ "\n");
+ _ -> ok
+ end
+ end(),
+ fun() ->
case lists:keyfind(port_env, 1, Conf) of
{_, Vars} ->
lists:foldl(fun