diff --git a/build_tarballs.jl b/build_tarballs.jl index 5095b85..d752cd7 100644 --- a/build_tarballs.jl +++ b/build_tarballs.jl @@ -17,11 +17,15 @@ sources = [ script = raw""" cd $WORKSPACE/srcdir cd scs-2.0.2/ +# Mac OS and Windows do not have openmp by default if [ $target = "x86_64-apple-darwin14" ] || [ $target = "x86_64-w64-mingw32" ] || [ $target = "i686-w64-mingw32" ]; then flags="DLONG=1" else flags="DLONG=1 USE_OPENMP=1" fi +if [ $target = "x86_64-apple-darwin14" ]; then + install_name_tool -id libopenblas64_.dylib ${prefix}/lib/libopenblas64_.0.3.0.dev.dylib +fi blasldflags="-L${prefix}/lib" if [[ ${nbits} == 32 ]]; then blasldflags="${blasldflags} -lopenblas"; else flags="${flags} BLAS64=1 BLASSUFFIX=_64_"; blasldflags="${blasldflags} -lopenblas64_"; fi make BLASLDFLAGS="${blasldflags}" ${flags} out/libscsdir.${dlext}