Skip to content

Commit

Permalink
use install_name_tool to fix the SONAME inside the shared object
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Apr 17, 2024
1 parent 9aaebc0 commit af2c555
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ if [[ $py_version != $pkg_version* ]]; then
exit 1
fi

if [ $(uname) == "Darwin" ]; then
soname=$(cd local/scipy_openblas64/lib; ls libscipy_openblas*.dylib)
install_name_tool -id $soname local/scipy_openblas64/lib/$soname
fi

rm -rf local/scipy_openblas64/lib/pkgconfig
echo "" >> LICENSE.txt
echo "----" >> LICENSE.txt
Expand Down

0 comments on commit af2c555

Please sign in to comment.