Skip to content

Commit 65fd7a3

Browse files
committed
debug why 32-bit build does not do objcopy properly
1 parent 027967f commit 65fd7a3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tools/build_openblas.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,15 @@ DLL_BASENAME=libscipy_openblas${SYMBOLSUFFIX}_${LIBNAMESUFFIX}
107107
static_libname=$(find . -maxdepth 1 -type f -name '*.a' \! -name '*.dll.a' | tail -1)
108108
make -C exports $interface_flags objcopy.def
109109

110-
if [ "$build_bits" == 32 ]; then
110+
if [ "$build_bits" == "32" ]; then
111111
sed -i "s/^/_/" exports/objcopy.def
112112
sed -i "s/scipy_/_scipy_/" exports/objcopy.def
113-
echo "make sure both columns have leading underscores"
114-
head -10 exports/objcopy.def
113+
else
114+
echo not updating objcopy,def, buildbits=$build_bits
115115
fi
116+
echo "\nshow some of objcopy.def"
117+
head -10 exports/objcopy.def
118+
echo
116119
objcopy --redefine-syms exports/objcopy.def "${static_libname}" "${static_libname}.renamed"
117120
cp -f "${static_libname}.renamed" "$openblas_root/$build_bits/lib/${static_libname}"
118121
cp -f "${static_libname}.renamed" "$openblas_root/$build_bits/lib/${DLL_BASENAME}.a"

0 commit comments

Comments
 (0)