OpenBLASをビルド(Archlinux)

OpenBLASをビルドするのに手間取ったのでメモ書き

git clone https://github.com/xianyi/OpenBLAS
cd OpenBLAS
make USE_OPENMP=1 CC=gcc FC=gfortran
make PREFIX=/usr install #これで/usr/lib/pkgconfigの中にopenblas.pcが作成される

#export PKG_CONFIG_PATH=/usr/lib/pkgconfigはなくても良かった
pkg-config -debug openblas

References