jlouis / enacl

Erlang bindings for NaCl / libsodium
MIT License
197 stars 59 forks source link

remove x86 from darwin config #63

Closed matthewcarlreetz closed 2 years ago

matthewcarlreetz commented 2 years ago

Remove the -arch x86_64 flag to allow build on arm64 Macs.

dabaer commented 2 years ago

Did you have an issue with homebrew libsodium that you needed to add those lines? In my PR for this issue (#60) just changing the arch indication worked on my m1 system with libsodium installed through homebrew.

dabaer commented 2 years ago

Nevermind, I see i forgot I had commented on the issue #53 about it and was exporting the CLIBS

export CPATH=/opt/homebrew/include
export LIBRARY_PATH=/opt/homebrew/lib

I think specifying the library location as you've done may break on intel based systems that way.