Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 1eb068c

Browse files
fix OpenBlas for macOS
1 parent 51926f1 commit 1eb068c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build_tarballs.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ make BLASLDFLAGS="${blasldflags}" ${flags} out/libscsdir.${dlext}
3434
make BLASLDFLAGS="${blasldflags}" ${flags} out/libscsindir.${dlext}
3535
mv out/libscs* ${prefix}/lib/
3636
37+
# Copied from https://github.com/JuliaLinearAlgebra/ArpackBuilder/blob/ed55085cd647b39fefb923c3dd95b03591522760/build_tarballs.jl#L72-L77
38+
# For now, we'll have to adjust the name of the OpenBLAS library on macOS.
39+
# Eventually, this should be fixed upstream
40+
if [[ ${target} == "x86_64-apple-darwin14" ]]; then
41+
echo "-- Modifying library name for OpenBLAS"
42+
install_name_tool -change libopenblas64_.0.3.0.dev.dylib libopenblas64_.dylib ${prefix}/lib/libscsindir.dylib
43+
install_name_tool -change libopenblas64_.0.3.0.dev.dylib libopenblas64_.dylib ${prefix}/lib/libscsdir.dylib
44+
fi
3745
"""
3846

3947
# These are the platforms we will build for by default, unless further

0 commit comments

Comments
 (0)