Fix compilation warnings and prepare to be a dependency.

This commit is contained in:
2023-04-28 17:49:27 +06:00
parent 9e9aa23af7
commit 10301b40c8
8 changed files with 19 additions and 13 deletions

View File

@@ -5,6 +5,9 @@
{port_env, [
{"DRV_LDFLAGS", "$DRV_LDFLAGS -lz -lgit2"},
%% fix rebar2 compilation for erlang-23 and above (replace automatic usage of -lerl_interface with -lei)
{"ERL_LDFLAGS", "-L$ERL_EI_LIBDIR -lei"},
%% OS X Leopard flags for 64-bit
{"darwin9.*-64$", "CXXFLAGS", "-m64"},
{"darwin9.*-64$", "LDFLAGS", "-arch x86_64"},