[Buildroot] [PATCH 2/2] package/python-numpy: use fortran compiler when available
guillaume.bressaix at gmail.com
guillaume.bressaix at gmail.com
Sat Jun 27 13:08:05 UTC 2020
From: "Guillaume W. Bres" <guillaume.bressaix at gmail.com>
python-numpy can be built using fortran compiler if
available, this is the correct configure flag to do it
Signed-off-by: Guillaume W. Bres <guillaume.bressaix at gmail.com>
---
package/python-numpy/python-numpy.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/python-numpy/python-numpy.mk b/package/python-numpy/python-numpy.mk
index f9c55c9f3c..9e08fd5f2e 100644
--- a/package/python-numpy/python-numpy.mk
+++ b/package/python-numpy/python-numpy.mk
@@ -23,6 +23,10 @@ else
PYTHON_NUMPY_ENV += BLAS=None LAPACK=None
endif
+ifeq ($(BR2_TOOLCHAIN_HAS_FORTRAN),y)
+PYTHON_NUMPY_ENV += F90=$(TARGET_FC)
+endif
+
define PYTHON_NUMPY_CONFIGURE_CMDS
-rm -f $(@D)/site.cfg
echo "[DEFAULT]" >> $(@D)/site.cfg
--
2.20.1
More information about the buildroot
mailing list