Files
geef/rebar.config

19 lines
562 B
Erlang

{port_specs, [
{"priv/geef.so", ["c_src/*.c"]}
]}.
{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"},
%% OS X Snow Leopard flags for 32-bit
{"darwin10.*-32$", "CXXFLAGS", "-m32"},
{"darwin10.*-32$", "LDFLAGS", "-arch i386"}
]}.