Skip to content

Commit

Permalink
build: append *BSD library and include paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dch committed Jan 5, 2023
1 parent 86c66ab commit de76879
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@

{erl_opts, [debug_info, {src_dirs, ["src"]}]}.
{port_env, [{"ERL_LDFLAGS", " -L$ERL_EI_LIBDIR -lei"},
{"CFLAGS", "$CFLAGS"}, {"LDFLAGS", "$LDFLAGS -lyaml"},
{"CFLAGS", "$CFLAGS -I/usr/local/include"},
{"LDFLAGS", "$LDFLAGS -lyaml -L/usr/local/lib"},
{"win32", "CFLAGS", "$CFLAGS /DYAML_DECLARE_STATIC"},
{"win32", "LDFLAGS", "$LDFLAGS yaml.lib"}]}.
{port_specs, [{"priv/lib/fast_yaml.so", ["c_src/fast_yaml.c"]}]}.
Expand Down

0 comments on commit de76879

Please sign in to comment.