Skip to content

Commit 5bd214d

Browse files
committed
blindly try the last importlib instead of the first
1 parent 70a3d33 commit 5bd214d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/build_gfortran.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ set -e
55
cd $(cygpath "$START_DIR")
66
OBP=$(cygpath $OPENBLAS_ROOT\\$BUILD_BITS)
77

8-
static_libname=$(find $OBP/lib -maxdepth 1 -type f -name '*.a' \! -name '*.dll.a' | head -1)
9-
dynamic_libname=$(find $OBP/lib -maxdepth 1 -type f -name '*.dll.a' | head -1)
8+
static_libname=$(find $OBP/lib -maxdepth 1 -type f -name '*.a' \! -name '*.dll.a' | tail -1)
9+
dynamic_libname=$(find $OBP/lib -maxdepth 1 -type f -name '*.dll.a' | tail -1)
1010

1111
if [ "$INTERFACE64" == "1" ]; then
1212
gfortran -I $OBP/include -fdefault-integer-8 -o test.exe test64_.f90 $static_libname

tools/build_openblas.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if [ "$INTERFACE64" == "1" ]; then
7979
# OpenBLAS does not build a symbol-suffixed static library on Windows:
8080
# do it ourselves
8181
set -x # echo commands
82-
static_libname=$(find . -maxdepth 1 -type f -name '*.a' \! -name '*.dll.a' | head -1)
82+
static_libname=$(find . -maxdepth 1 -type f -name '*.a' \! -name '*.dll.a' | tail -1)
8383
make -C exports $interface64_flags objcopy.def
8484
objcopy --redefine-syms exports/objcopy.def "${static_libname}" "${static_libname}.renamed"
8585
cp -f "${static_libname}.renamed" "$OPENBLAS_ROOT/$BUILD_BITS/lib/${static_libname}"

0 commit comments

Comments
 (0)