Skip to content

Commit

Permalink
Imrpove Arpack install_name_tool trickery (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat authored Dec 3, 2019
1 parent 4d5d746 commit d6436bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions A/Arpack/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ make install VERBOSE=1
# Arpack links against a _very_ specific version of OpenBLAS on macOS by default:
if [[ ${target} == *apple* ]]; then
# Rewrite it to be more accomodating
install_name_tool -change libopenblas64_0.3.7.dylib libopenblas64_.dylib ${prefix}/lib/libarpack.2.0.0.dylib
# Figure out what version it probably latched on to:
OPENBLAS_LINK=$(otool -L ${prefix}/lib/libarpack.dylib | grep libopenblas64_ | awk '{ print $1 }')
install_name_tool -change ${OPENBLAS_LINK} @rpath/libopenblas64_.dylib ${prefix}/lib/libarpack.dylib
fi
"""

Expand Down

0 comments on commit d6436bc

Please sign in to comment.