Skip to content

Commit c5d1df5

Browse files
committed
Fix builds for ARPACK-NG on Mac
1 parent aa4b8ea commit c5d1df5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
2525
fi
2626
2727
brew uninstall --force --ignore-dependencies gcc gcc@7 gcc@8 gcc@9 gcc@10 gcc@11 gcc@12 gcc@13 gcc@14 little-cms2 maven openblas r
28-
brew install boost ccache swig autoconf-archive automake cmake libomp libtool libusb ant nasm xz pkg-config sdl2 gpg1 bison flex perl ragel binutils gradle gmp isl libmpc mpfr geoip pcre ssdeep yajl
28+
brew install --force boost ccache swig autoconf-archive automake cmake libomp libtool libusb ant nasm xz pkg-config sdl2 gpg1 bison flex perl ragel binutils gradle gmp isl libmpc mpfr geoip pcre ssdeep yajl
2929
3030
# echo Installing an older less buggy version of CMake
3131
# curl -LO https://raw.githubusercontent.com/Homebrew/homebrew-core/30a3e5e02420a515f9bad02e3cfcde95316db529/Formula/cmake.rb

arpack-ng/cppbuild.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ case $PLATFORM in
8787
sed -i="" 's/install_name \\$rpath/install_name @rpath/g' configure m4/libtool.m4
8888
export CC="$(compgen -cX '!gcc*')"
8989
export CXX="$(compgen -cX '!g++*')"
90-
export FC="$(compgen -cX '!gfortran*') -Wl,-rpath,@loader_path/"
90+
export FC="$(compgen -cX '!gfortran*') -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)