[PATCHv5,3/3] package/python-numpy: fix occasional run-time failure with lapack
diff mbox series

Message ID 20190715122512.17290-1-alexandre.payen@smile.fr
State Superseded
Headers show
Series
  • Untitled series #119503
Related show

Commit Message

Alexandre PAYEN July 15, 2019, 12:25 p.m. UTC
From: Alexandre PAYEN <alexandre.payen@smile.fr>

With the virtual packet liblapack, numpy can be build using both providers.
Due to run-time failure when complex option is enable,
the cblas reference must be add when :
BR2_PACKAGE_LAPACK_COMPLEX = y

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Alexandre PAYEN <alexandre.payen@smile.fr>
---
 package/python-numpy/python-numpy.mk | 3 +++
 1 file changed, 3 insertions(+)

Patch
diff mbox series

diff --git a/package/python-numpy/python-numpy.mk b/package/python-numpy/python-numpy.mk
index b90ff7d70f..30db0b3797 100644
--- a/package/python-numpy/python-numpy.mk
+++ b/package/python-numpy/python-numpy.mk
@@ -18,6 +18,9 @@  PYTHON_NUMPY_SETUP_TYPE = setuptools
 ifeq ($(BR2_PACKAGE_CLAPACK),y)
 PYTHON_NUMPY_DEPENDENCIES += clapack
 PYTHON_NUMPY_SITE_CFG_LIBS += cblas clapack
+else ifeq ($(BR2_PACKAGE_LAPACK_COMPLEX),y)
+PYTHON_NUMPY_DEPENDENCIES += lapack
+PYTHON_NUMPY_SITE_CFG_LIBS += blas cblas lapack
 else
 PYTHON_NUMPY_ENV += BLAS=None LAPACK=None
 endif