Skip to content

Commit

Permalink
use prefix in more places
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Oct 29, 2023
1 parent 0225ae3 commit 5758b60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion local/scipy_openblas64/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def get_openblas_config():
libnames = [x for x in os.listdir(lib_dir) if x.endswith(".dll")]
else:
# Get openblas*
libnames = [x for x in os.listdir(lib_dir) if x.startswith("lib")]
libnames = [x for x in os.listdir(lib_dir) if x.startswith("libscipy")]

dll = ctypes.CDLL(os.path.join(lib_dir, libnames[0]), ctypes.RTLD_GLOBAL)
openblas_config = dll.openblas_get_config64_
Expand Down
2 changes: 1 addition & 1 deletion tools/build_openblas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ if [ "$if_bits" == "64" ]; then
# do it ourselves
set -x # echo commands
static_libname=$(find . -maxdepth 1 -type f -name '*.a' \! -name '*.dll.a' | tail -1)
make -C exports $interface64_flags objcopy.def
make -C exports SYMBOLPREFIX=scipy_ $interface64_flags objcopy.def
objcopy --redefine-syms exports/objcopy.def "${static_libname}" "${static_libname}.renamed"
cp -f "${static_libname}.renamed" "$openblas_root/$build_bits/lib/${static_libname}"
cp -f "${static_libname}.renamed" "$openblas_root/$build_bits/lib/${DLL_BASENAME}.a"
Expand Down
2 changes: 1 addition & 1 deletion tools/build_steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function do_build_lib {
tar zcvf libs/$out_name \
$BUILD_PREFIX/include/*blas* \
$BUILD_PREFIX/include/*lapack* \
$BUILD_PREFIX/lib/lib* \
$BUILD_PREFIX/lib/libscipyopenblas* \
$BUILD_PREFIX/lib/pkgconfig/openblas* \
$BUILD_PREFIX/lib/cmake/openblas
}
Expand Down

0 comments on commit 5758b60

Please sign in to comment.