@@ -49,12 +49,12 @@ git submodule update --init --recursive
49
49
50
50
51
51
# Get / clean code
52
- # git fetch origin
53
- # if [ -n "$OPENBLAS_COMMIT" ]; then
54
- # git checkout $OPENBLAS_COMMIT
55
- # fi
56
- # git clean -fxd
57
- # git reset --hard
52
+ git fetch origin
53
+ if [ -n " $OPENBLAS_COMMIT " ]; then
54
+ git checkout $OPENBLAS_COMMIT
55
+ fi
56
+ git clean -fxd
57
+ it reset --hard
58
58
rm -rf $openblas_root /$build_bits
59
59
60
60
# Set architecture flags
@@ -90,13 +90,14 @@ interface_flags="$interface_flags SYMBOLPREFIX=scipy_ LIBNAMEPREFIX=scipy_ FIXED
90
90
# Build name for output library from gcc version and OpenBLAS commit.
91
91
GCC_TAG=" gcc_$( gcc -dumpversion | tr .- _) "
92
92
OPENBLAS_VERSION=$( git describe --tags --abbrev=8)
93
- # Patch OpenBLAS to exclude stray GFortran symbol.
94
- # Replacement snprintf symbol only present for UCRTC 64-bit build.
95
- # if [ "$BUILD_BITS" == 64 ]; then
96
- # patch -p1 < ../patches-windows/openblas-make-libs.patch
97
- # fi
93
+
94
+ # Patch OpenBLAS build to resolve all symbols and avoid linking
95
+ # with libquadmath
96
+ if [ " $BUILD_BITS " == 64 ]; then
97
+ patch -p1 < ../patches-windows/openblas-make-libs.patch
98
+ fi
99
+
98
100
# Build OpenBLAS
99
- # Variable used in creating output libraries
100
101
make BINARY=$build_bits DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \
101
102
NUM_THREADS=24 NO_WARMUP=1 NO_AFFINITY=1 CONSISTENT_FPCSR=1 \
102
103
BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20\
@@ -107,12 +108,10 @@ make BINARY=$build_bits DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \
107
108
$interface_flags
108
109
make PREFIX=$openblas_root /$build_bits $interface_flags install
109
110
DLL_BASENAME=libscipy_openblas${LIBNAMESUFFIX}
110
- if [ -f " ${DLL_BASENAME} .dll.a" ]; then
111
- cp -f " ${DLL_BASENAME} .dll.a" " $openblas_root /$build_bits /lib/"
112
- else
113
- # 32-bit build somehow does not put scipy_ into the import lib name
114
- cp -f " libopenblas.dll.a" " $openblas_root /$build_bits /lib/"
115
- fi
111
+ echo ------
112
+ ls * .dll.a
113
+ echo ------
114
+ cp -f * .dll.a $openblas_root /$build_bits /lib/{DLL_BASENAME}.dll.a
116
115
117
116
# OpenBLAS does not build a symbol-suffixed static library on Windows:
118
117
# do it ourselves. On 32-bit builds, the objcopy.def names need a '_' prefix
0 commit comments