openblas: build only C-language BLAS if the toolchain doesn't have Fortran
PATCH 1/1 openblas: build only C-language BLAS if the toolchain doesn't have Fortran
Signed-off-by Vicente Olivert Riera <[email protected]>
--- package/openblas/openblas.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
package/openblas/openblas.mk +3 -2
@@ -19,9 +19,10 @@ OPENBLAS_MAKE_OPTS += CROSS=1 # Set OpenBLAS target OPENBLAS_MAKE_OPTS += TARGET=$(BR2_PACKAGE_OPENBLAS_TARGET) -# Disable fortran by default until we add BR2_TOOLCHAIN_HAS_FORTRAN -# hidden symbol to our toolchain infrastructure +# Build only C-language BLAS if the toolchain doesn't have Fortran +ifeq ($(BR2_TOOLCHAIN_HAS_FORTRAN),) OPENBLAS_MAKE_OPTS += ONLY_CBLAS=1 +endif # Enable/Disable multi-threading (not for static-only since it uses dlfcn.h) ifeq ($(BR2_TOOLCHAIN_HAS_THREADS):$(BR2_STATIC_LIBS),y:)
Signature · 1 line
2.7.3
PATCH 1/1 openblas: build only C-language BLAS if the toolchain doesn't have Fortran
Hello,
Quoted 4 lines · Vicente Olivert Riera
Signed-off-by Vicente Olivert Riera <[email protected]>--- package/openblas/openblas.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
I've applied, after reworking the commit title and comment. Indeed when you say "openblas: build only C-language BLAS if the toolchain doesn't have Fortran" one might think that the C-language BLAS will only be built when Fortran is not available.
While what you are doing is just making sure that BLAS tries to only build the C version when Fortran support is not available.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com