From 12a2b7bcf742aee50e7363e24c38756b73cabfb7 Mon Sep 17 00:00:00 2001 From: Matti Picus Date: Sun, 4 Aug 2024 19:32:01 +0300 Subject: [PATCH] fix copy for 32-bit --- tools/build_openblas.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/build_openblas.sh b/tools/build_openblas.sh index d8eb9e3..84d69be 100644 --- a/tools/build_openblas.sh +++ b/tools/build_openblas.sh @@ -106,8 +106,13 @@ make BINARY=$build_bits DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \ MAX_STACK_ALLOC=2048 \ $interface_flags make PREFIX=$openblas_root/$build_bits $interface_flags install -DLL_BASENAME=libscipy_openblas${SYMBOLSUFFIX}${LIBNAMESUFFIX} -cp -f "${DLL_BASENAME}.dll.a" "$openblas_root/$build_bits/lib/" +DLL_BASENAME=libscipy_openblas${LIBNAMESUFFIX} +if [ -f "${DLL_BASENAME}.dll.a" ]; then + cp -f "${DLL_BASENAME}.dll.a" "$openblas_root/$build_bits/lib/" +else + # 32-bit build somehow does not put scipy_ into the import lib name + cp -f "libopenblas.dll.a" "$openblas_root/$build_bits/lib/" +fi # OpenBLAS does not build a symbol-suffixed static library on Windows: # do it ourselves. On 32-bit builds, the objcopy.def names need a '_' prefix