Skip to content

Commit 9d1b70b

Browse files
committed
Fix builds for ARPACK-NG on Mac
1 parent d87a4fc commit 9d1b70b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/actions/deploy-macosx/action.yml

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ runs:
116116
117117
git --version
118118
clang --version
119+
/opt/homebrew/bin/gcc-* --version || true
119120
/usr/local/bin/gcc-* --version || true
120121
cmake --version
121122
gradle --version

arpack-ng/cppbuild.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ case $PLATFORM in
8585
;;
8686
macosx-arm64)
8787
sed -i="" 's/install_name \\$rpath/install_name @rpath/g' configure m4/libtool.m4
88-
export CC="$(compgen -cX '!gcc*')"
89-
export CXX="$(compgen -cX '!g++*')"
90-
export FC="$(compgen -cX '!gfortran*') -Wl,-rpath,@loader_path/ -Wl,-rpath,$(ls -1d /opt/homebrew/opt/gcc*/lib/gcc/*/ | head -n 1)"
88+
export CC="$(ls -1 /opt/homebrew/bin/gcc-* | head -n 1)"
89+
export CXX="$(ls -1 /opt/homebrew/bin/g++-* | head -n 1)"
90+
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)"
9191
export F77="$FC"
9292
export FLIBS="-lgfortran"
9393
./configure --prefix=$INSTALL_PATH --enable-icb --with-blas=openblas --with-lapack=openblas

0 commit comments

Comments
 (0)