Macでのcpuminer-multiのビルド

GitHub - tpruvot/cpuminer-multi: crypto cpuminer (linux + windows)
Homebrewで必要なライブラリを入れた状態でREADME記載のやり方だとどうにもうまく行かなくて解決策を探した結果の備忘録。
まず、openssh.hが見つからないと言われた件は下記を参考にシンボリックリンクを貼って対応。
https://satoshisgarage.tech/?p=5763

そして、make時にエラーがでてしまう件は下記Forumで見つけた方法でできた。
[ANN] cpuminer-multi v1.3.5 (Linux + Windows VStudio/MinGW64) GPL Open Source

$ git clone https://github.com/tpruvot/cpuminer-multi.git && cd cpuminer-multi
./autogen.sh && chmod +x nomacro.pl && cd asm && ../nomacro.pl && cd ..
./configure --with-curl --with-crypto=/opt/local CFLAGS="-march=native"
perl -p -i -e "s/#if \(WINDOWS\)/#define ASM 0\n#if (WINDOWS)/g" algo/neoscrypt.c
make
https://bitcointalk.org/index.php?topic=841401.msg13025434#msg13025434