Skip to content

Commit

Permalink
Fix builds for ARPACK-NG on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
saudet committed Nov 22, 2024
1 parent d87a4fc commit 9d1b70b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/actions/deploy-macosx/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ runs:
git --version
clang --version
/opt/homebrew/bin/gcc-* --version || true
/usr/local/bin/gcc-* --version || true
cmake --version
gradle --version
Expand Down
6 changes: 3 additions & 3 deletions arpack-ng/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ case $PLATFORM in
;;
macosx-arm64)
sed -i="" 's/install_name \\$rpath/install_name @rpath/g' configure m4/libtool.m4
export CC="$(compgen -cX '!gcc*')"
export CXX="$(compgen -cX '!g++*')"
export FC="$(compgen -cX '!gfortran*') -Wl,-rpath,@loader_path/ -Wl,-rpath,$(ls -1d /opt/homebrew/opt/gcc*/lib/gcc/*/ | head -n 1)"
export CC="$(ls -1 /opt/homebrew/bin/gcc-* | head -n 1)"
export CXX="$(ls -1 /opt/homebrew/bin/g++-* | head -n 1)"
export FC="$(ls -1 /opt/homebrew/bin/gfortran-* | head -n 1) -Wl,-rpath,@loader_path/ -Wl,-rpath,$(ls -1d /opt/homebrew/opt/gcc*/lib/gcc/*/ | head -n 1)"
export F77="$FC"
export FLIBS="-lgfortran"
./configure --prefix=$INSTALL_PATH --enable-icb --with-blas=openblas --with-lapack=openblas
Expand Down

0 comments on commit 9d1b70b

Please sign in to comment.