lapack fails to build when testing for fortran during the configure phase with bfd as a linker. Resolved by turning off LTO.
Created attachment 878819 [details] build.log main.c:(.text.main+0x15): undefined reference to `VerifyFortran' seems to be the main culprit!
note wrt linker: We have to use bfd here because clang->gfortran (we don't have flang yet). with lld, we get the standard 'undefined reference to main' thing because lld doesn't support gcc lto.