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
6262 extra=" -fno-asynchronous-unwind-tables"
6363 vc_arch=" X64"
6464 plat_tag=" win_amd64"
65+ snprintf_suffix=' '
6566else
6667 march=pentium4
6768 extra=" -mfpmath=sse -msse2"
6869 fextra=" -m32"
6970 vc_arch=" i386"
7071 plat_tag=" win32"
72+ snprintf_suffix=' __mingw_'
7173fi
7274cflags=" -O2 -march=$march -mtune=generic $extra "
7375fflags=" $fextra $cflags -frecursive -ffpe-summary=invalid,zero"
8688GCC_TAG=" gcc_$( gcc -dumpversion | tr .- _) "
8789OPENBLAS_VERSION=$( git describe --tags)
8890# 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
9092# Build OpenBLAS
9193# Variable used in creating output libraries
9294export LIBNAMESUFFIX=${OPENBLAS_VERSION} -${GCC_TAG}
You can’t perform that action at this time.
0 commit comments