aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2020-05-26 11:01:22 +0200
committerPaweł Chmielowski <pchmielowski@process-one.net>2020-05-26 11:01:22 +0200
commit21312c79aa1c1c319f2b1859184a5ef3126c7ac9 (patch)
tree13e7c137dde1f008df05983017025827702042da
parentejabberd_stun: Add 'turn_blacklist' option (diff)
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.
-rw-r--r--rebar.config1
1 files changed, 1 insertions, 0 deletions
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", []},