From 21312c79aa1c1c319f2b1859184a5ef3126c7ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Tue, 26 May 2020 11:01:22 +0200 Subject: [PATCH] Modify ERL_LDFLAGS of deps when compiling on R23 on rebar2 Newer version removed erl_interface, and default rebar2 ERL_LDFLAGS will try to link it, this change should pass correct flags to compiler. --- rebar.config | 1 + 1 file changed, 1 insertion(+) diff --git a/rebar.config b/rebar.config index ae7659bf0..ca640916b 100644 --- a/rebar.config +++ b/rebar.config @@ -151,6 +151,7 @@ {recursive_cmds, ['configure-deps']}. {overrides, [ + {if_not_rebar3, {if_version_above, "22", {add, [{port_env, [{"ERL_LDFLAGS", " -L$ERL_EI_LIBDIR -lei"}]}]}}}, {del, [{erl_opts, [warnings_as_errors]}]}]}. {post_hook_configure, [{"fast_tls", []},