Details on ATLAS's LAPACK autobuild

The main thing that you need to install the netlib LAPACK is a correct make.inc which provides the correct compilers, flags, etc. When mixing ATLAS and netlib lapack, you need to be sure to use compatible compiler flags. ATLAS's lapack autobuild creates a make.inc for LAPACK to use by substituting the ATLAS options in make.inc.example that netlib LAPACK provides. It auto-sets the macros FORTRAN, OPTS, NOOPT, LOADER, LOADOPTS, and TIMER. If in future releases of LAPACK they remove the make.inc.example file, rename the above macros, or provide additional architecture-specific macros, then this autobuild process may have to be modified. In this case, you may be able to get things working by creating a compatible make.inc yourself after the ATLAS configure step, but before the build step. You can see the Makefile targets for autobuilding netlib's ATLAS in BLDdir/interfaces/lapack/C2F/Makefile.



R. Clint Whaley 2016-07-28