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

Commit 6daad24

Browse files
Update build_tarballs.jl
1 parent 3839f39 commit 6daad24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build_tarballs.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@ sources = [
1717
script = raw"""
1818
cd $WORKSPACE/srcdir
1919
cd scs-2.0.2/
20+
# Mac OS and Windows do not have openmp by default
2021
if [ $target = "x86_64-apple-darwin14" ] || [ $target = "x86_64-w64-mingw32" ] || [ $target = "i686-w64-mingw32" ]; then
2122
flags="DLONG=1"
2223
else
2324
flags="DLONG=1 USE_OPENMP=1"
2425
fi
26+
if [ $target = "x86_64-apple-darwin14" ]; then
27+
install_name_tool -id libopenblas64_.dylib ${prefix}/lib/libopenblas64_.0.3.0.dev.dylib
28+
fi
2529
blasldflags="-L${prefix}/lib"
2630
if [[ ${nbits} == 32 ]]; then blasldflags="${blasldflags} -lopenblas"; else flags="${flags} BLAS64=1 BLASSUFFIX=_64_"; blasldflags="${blasldflags} -lopenblas64_"; fi
2731
make BLASLDFLAGS="${blasldflags}" ${flags} out/libscsdir.${dlext}

0 commit comments

Comments
 (0)