aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Vicente Olivert Riera <Vincent.Riera@imgtec.com>2016-07-04 16:22:59 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-07-04 17:34:09 +0200
commitd125e8d4d3929cbfa2a7b3dd10514cf1bac87816 (patch)
treef3909022ff7cd8ccf7b4dac9910ec356fe415740 /package
parent7bec6225f3912f5d64e2282a305e33a57ecd58f7 (diff)
downloadbuildroot-d125e8d4d3929cbfa2a7b3dd10514cf1bac87816.tar.gz
buildroot-d125e8d4d3929cbfa2a7b3dd10514cf1bac87816.tar.bz2
openblas: pass ONLY_CBLAS=1 only when Fortran is not available
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r--package/openblas/openblas.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/openblas/openblas.mk b/package/openblas/openblas.mk
index d07d09dc99..baeef05297 100644
--- a/package/openblas/openblas.mk
+++ b/package/openblas/openblas.mk
@@ -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
+# When Fortran is not available, only build the C version of BLAS
+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:)