@@ -77,20 +77,21 @@ fflags="$fextra $cflags -frecursive -ffpe-summary=invalid,zero"
77
77
# Set suffixed-ILP64 flags
78
78
if [ " $if_bits " == " 64" ]; then
79
79
SYMBOLSUFFIX=" 64_"
80
- interface_flags=" INTERFACE64=1 SYMBOLSUFFIX=${SYMBOLSUFFIX} LIBNAMESUFFIX= ${SYMBOLSUFFIX} "
80
+ interface_flags=" INTERFACE64=1 SYMBOLSUFFIX=${SYMBOLSUFFIX} "
81
81
# We override FCOMMON_OPT, so we need to set default integer manually
82
82
fflags=" $fflags -fdefault-integer-8"
83
83
else
84
84
interface_flags=" "
85
85
fi
86
- interface_flags=" $interface_flags SYMBOLPREFIX=scipy_ LIBNAMEPREFIX=scipy_ FIXED_LIBNAME=1"
86
+ # On windows, the LIBNAMEPREFIX is not needed, SYMBOLPREFIX is added to the lib
87
+ # name LIBPREFIX in Makefile.system.
88
+ interface_flags=" $interface_flags SYMBOLPREFIX=scipy_ FIXED_LIBNAME=1"
87
89
88
90
# Build name for output library from gcc version and OpenBLAS commit.
89
91
GCC_TAG=" gcc_$( gcc -dumpversion | tr .- _) "
90
92
OPENBLAS_VERSION=$( git describe --tags --abbrev=8)
91
93
# Build OpenBLAS
92
94
# Variable used in creating output libraries
93
- export LIBNAMESUFFIX=${OPENBLAS_VERSION} -${GCC_TAG}
94
95
make BINARY=$build_bits DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \
95
96
NUM_THREADS=24 NO_WARMUP=1 NO_AFFINITY=1 CONSISTENT_FPCSR=1 \
96
97
BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20\
@@ -100,7 +101,7 @@ make BINARY=$build_bits DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \
100
101
MAX_STACK_ALLOC=2048 \
101
102
$interface_flags
102
103
make PREFIX=$openblas_root /$build_bits $interface_flags install
103
- DLL_BASENAME=libscipy_openblas${SYMBOLSUFFIX} _ ${LIBNAMESUFFIX}
104
+ DLL_BASENAME=libscipy_openblas${SYMBOLSUFFIX}${LIBNAMESUFFIX}
104
105
105
106
# OpenBLAS does not build a symbol-suffixed static library on Windows:
106
107
# do it ourselves. On 32-bit builds, the objcopy.def names need a '_' prefix
0 commit comments