the Makefile options for compiling enacl fail for the arm-64 darwin architectures. See upstream in rebar where the -arch x86 flag is no longer specified (erlang/rebar3#2655). The very hacky way I got around this to build was after doing:
{"darwin", "CFLAGS", "$CFLAGS -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes -I /opt/homebrew/Cellar/libsodium/1.0.18_1/include"},
{"darwin", "CXXFLAGS", "$CXXFLAGS -O3 -finline-functions -Wall"},
{"darwin", "LDFLAGS", "$LDFLAGS -flat_namespace -undefined suppress -L /opt/homebrew/lib -lsodium"},
the Makefile options for compiling enacl fail for the arm-64 darwin architectures. See upstream in rebar where the
-arch x86flag is no longer specified (erlang/rebar3#2655). The very hacky way I got around this to build was after doing:brew install libsodiumLatest stable at this point in time being
1.0.18_1, then altering therebar.configto: