File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7676 - name : Test
7777 run : |
7878 & $env:BASH_PATH -lc tools/build_gfortran.sh
79- echo "Static test"
80- .\for_test\test.exe
8179 echo "Dynamic test"
8280 .\for_test\test_dyn.exe
8381
Original file line number Diff line number Diff line change @@ -9,19 +9,18 @@ cd for_test
99repo_path=$( cygpath " $START_DIR " )
1010OBP=$( cygpath $OPENBLAS_ROOT \\ $BUILD_BITS )
1111
12- static_libname=$( find $OBP /lib -maxdepth 1 -type f -name ' *.a' \! -name ' *.dll.a' | tail -1)
1312dynamic_libname=$( find $OBP /lib -maxdepth 1 -type f -name ' *.dll.a' | tail -1)
1413dll_name=$( find $OBP /bin -maxdepth 1 -type f -name ' *.dll' | tail -1)
1514
1615grep dpotrf $OBP /include/*
17- nm $static_libname | grep dpotrf
16+ nm $dynamic_libname | grep dpotrf
1817
1918cp $dll_name .
2019
20+ # Only the DLL ships in the wheel (see build_prepare_wheel.sh / windows.yml),
21+ # so we only test linking against it, not against a static library.
2122if [ " $INTERFACE64 " == " 1" ]; then
22- gfortran -I $OBP /include -fdefault-integer-8 -o test.exe ${repo_path} /test64_.f90 $static_libname
2323 gfortran -I $OBP /include -fdefault-integer-8 -o test_dyn.exe ${repo_path} /test64_.f90 $dynamic_libname
2424else
25- gfortran -I $OBP /include -o test.exe ${repo_path} /test.f90 $static_libname
2625 gfortran -I $OBP /include -o test_dyn.exe ${repo_path} /test.f90 $dynamic_libname
2726fi
Original file line number Diff line number Diff line change @@ -142,24 +142,6 @@ make PREFIX=$openblas_root/$build_bits $interface_flags install
142142DLL_BASENAME=libscipy_openblas${LIBNAMESUFFIX}
143143cp -f * .dll.a $openblas_root /$build_bits /lib/${DLL_BASENAME} .dll.a
144144
145- # OpenBLAS does not build a symbol-suffixed static library on Windows:
146- # do it ourselves. On 32-bit builds, the objcopy.def names need a '_' prefix
147- static_libname=$( find . -maxdepth 1 -type f -name ' *.a' \! -name ' *.dll.a' | tail -1)
148- make -C exports $interface_flags objcopy.def
149-
150- if [ " $build_bits " == " 32" ]; then
151- sed -i " s/^/_/" exports/objcopy.def
152- sed -i " s/scipy_/_scipy_/" exports/objcopy.def
153- else
154- echo not updating objcopy,def, buildbits=$build_bits
155- fi
156- echo " \nshow some of objcopy.def"
157- head -10 exports/objcopy.def
158- echo
159- objcopy --redefine-syms exports/objcopy.def " ${static_libname} " " ${static_libname} .renamed"
160- cp -f " ${static_libname} .renamed" " $openblas_root /$build_bits /lib/${static_libname} "
161- cp -f " ${static_libname} .renamed" " $openblas_root /$build_bits /lib/${DLL_BASENAME} .a"
162-
163145cd $openblas_root
164146# Copy library link file for custom name
165147pushd $build_bits /lib
You can’t perform that action at this time.
0 commit comments