Skip to content

Commit af2c555

Browse files
committed
use install_name_tool to fix the SONAME inside the shared object
1 parent 9aaebc0 commit af2c555

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/build_wheel.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ if [[ $py_version != $pkg_version* ]]; then
3434
exit 1
3535
fi
3636

37+
if [ $(uname) == "Darwin" ]; then
38+
soname=$(cd local/scipy_openblas64/lib; ls libscipy_openblas*.dylib)
39+
install_name_tool -id $soname local/scipy_openblas64/lib/$soname
40+
fi
41+
3742
rm -rf local/scipy_openblas64/lib/pkgconfig
3843
echo "" >> LICENSE.txt
3944
echo "----" >> LICENSE.txt

0 commit comments

Comments
 (0)