File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,16 @@ make PREFIX=$openblas_root/$build_bits $interface_flags install
103
103
DLL_BASENAME=libscipy_openblas${SYMBOLSUFFIX} _${LIBNAMESUFFIX}
104
104
105
105
# OpenBLAS does not build a symbol-suffixed static library on Windows:
106
- # do it ourselves
106
+ # do it ourselves. On 32-bit builds, the objcopy.def names need a '_' prefix
107
107
static_libname=$( find . -maxdepth 1 -type f -name ' *.a' \! -name ' *.dll.a' | tail -1)
108
108
make -C exports $interface_flags objcopy.def
109
+
110
+ if [ " $build_bits " == 32 ]; then
111
+ sed -i " s/^/_/" exports/objcopy.def
112
+ sed -i " s/scipy_/_scipy_/" exports/objcopy.def
113
+ echo " make sure both columns have leading underscores"
114
+ head -10 exports/objcopy.def
115
+ fi
109
116
objcopy --redefine-syms exports/objcopy.def " ${static_libname} " " ${static_libname} .renamed"
110
117
cp -f " ${static_libname} .renamed" " $openblas_root /$build_bits /lib/${static_libname} "
111
118
cp -f " ${static_libname} .renamed" " $openblas_root /$build_bits /lib/${DLL_BASENAME} .a"
You can’t perform that action at this time.
0 commit comments