File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,14 @@ if [ "$build_bits" == 64 ]; then
62
62
extra=" -fno-asynchronous-unwind-tables"
63
63
vc_arch=" X64"
64
64
plat_tag=" win_amd64"
65
+ snprintf_suffix=' '
65
66
else
66
67
march=pentium4
67
68
extra=" -mfpmath=sse -msse2"
68
69
fextra=" -m32"
69
70
vc_arch=" i386"
70
71
plat_tag=" win32"
72
+ snprintf_suffix=' __mingw_'
71
73
fi
72
74
cflags=" -O2 -march=$march -mtune=generic $extra "
73
75
fflags=" $fextra $cflags -frecursive -ffpe-summary=invalid,zero"
86
88
GCC_TAG=" gcc_$( gcc -dumpversion | tr .- _) "
87
89
OPENBLAS_VERSION=$( git describe --tags)
88
90
# Patch OpenBLAS to exclude stray GFortran symbol.
89
- patch -p1 < ../patches/openblas-make-libs.patch
91
+ cat ../patches/openblas-make-libs.patch | sed " s/=snprintf/= ${snprintf_suffix} snprintf/ " | patch -p1
90
92
# Build OpenBLAS
91
93
# Variable used in creating output libraries
92
94
export LIBNAMESUFFIX=${OPENBLAS_VERSION} -${GCC_TAG}
You can’t perform that action at this time.
0 commit comments