diff options
author | Malik Talha <talhamalik727x@gmail.com> | 2023-10-06 01:46:44 +0500 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-10-06 13:19:50 +0000 |
commit | 713efdf66dca8e60c3db1e720a9bb2bd074c40f3 (patch) | |
tree | 2a0442fee5812d4d5c19016ab479ab3daa30406b /meta-offline-voice-agent/recipes-blas/openblas/openblas_git.bb | |
parent | 88775acac57bdd2184180ad672a410b1155f1e1f (diff) |
Fix Scipy, OpenBlas, and NumPy library linking issues
This fixes the linking issues primarily between Scipy and OpenBlas
caused due to Scipy expecting a different name for OpenBlas dynamic
linking library.
Bug-AGL: SPEC-4925
Change-Id: Idb8f620134d63e7d9425a0df8942370430b3f700
Signed-off-by: Malik Talha <talhamalik727x@gmail.com>
Diffstat (limited to 'meta-offline-voice-agent/recipes-blas/openblas/openblas_git.bb')
-rw-r--r-- | meta-offline-voice-agent/recipes-blas/openblas/openblas_git.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-offline-voice-agent/recipes-blas/openblas/openblas_git.bb b/meta-offline-voice-agent/recipes-blas/openblas/openblas_git.bb index 84e76542..7f105e26 100644 --- a/meta-offline-voice-agent/recipes-blas/openblas/openblas_git.bb +++ b/meta-offline-voice-agent/recipes-blas/openblas/openblas_git.bb @@ -49,13 +49,16 @@ EXTRA_OEMAKE = "\ do_install() { oe_runmake PREFIX=${D}${prefix} install rm -rf ${D}${bindir} ${D}${libdir}/cmake + # fixup pkgconfig file sed -i -e "s#libdir=/.*#libdir=${libdir}#" ${D}${libdir}/pkgconfig/openblas.pc sed -i -e "s#includedir=/.*#includedir=${includedir}#" ${D}${libdir}/pkgconfig/openblas.pc cat ${D}${libdir}/pkgconfig/openblas.pc + # Create symlink from libblas.so to libopenblas.so.0, required by scipy + ln -s libopenblas.so.0 ${D}${libdir}/libblas.so } -FILES:${PN}-dev = "${includedir} ${libdir}/lib${PN}.so" FILES:${PN} = "${libdir}/*" +FILES:${PN}-dev = "${includedir} ${libdir}/libopenblas.so ${libdir}/libblas.so" |