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 aa4b8ea commit c5d1df5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/deploy-macosx/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runs:
fi
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
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
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
# echo Installing an older less buggy version of CMake
# curl -LO https://raw.githubusercontent.com/Homebrew/homebrew-core/30a3e5e02420a515f9bad02e3cfcde95316db529/Formula/cmake.rb
Expand Down
2 changes: 1 addition & 1 deletion arpack-ng/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ case $PLATFORM in
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/"
export FC="$(compgen -cX '!gfortran*') -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 c5d1df5

Please sign in to comment.