diff --git a/recipes/recipes_emscripten/xtensor-blas/patches/shared.patch b/recipes/recipes_emscripten/xtensor-blas/patches/shared.patch new file mode 100644 index 00000000000..18e1ef9f9e0 --- /dev/null +++ b/recipes/recipes_emscripten/xtensor-blas/patches/shared.patch @@ -0,0 +1,13 @@ +diff --git a/include/xtensor-blas/xblas_config_cling.hpp.in b/include/xtensor-blas/xblas_config_cling.hpp.in +index cbe4f13..f2f2689 100644 +--- a/include/xtensor-blas/xblas_config_cling.hpp.in ++++ b/include/xtensor-blas/xblas_config_cling.hpp.in +@@ -26,7 +26,7 @@ + + #include + static bool _openblas_loaded = []() { +- Cpp::LoadLibrary(@OPENBLAS_CPPINTEROP_LIBRARY_PATH@, false); ++ Cpp::LoadLibrary("/lib/@CMAKE_SHARED_LIBRARY_PREFIX@openblas@CMAKE_SHARED_LIBRARY_SUFFIX@", false); + return true; + }(); + diff --git a/recipes/recipes_emscripten/xtensor-blas/recipe.yaml b/recipes/recipes_emscripten/xtensor-blas/recipe.yaml index b74a9d2ccb8..a2ecc4fb4d3 100644 --- a/recipes/recipes_emscripten/xtensor-blas/recipe.yaml +++ b/recipes/recipes_emscripten/xtensor-blas/recipe.yaml @@ -9,9 +9,11 @@ package: source: url: https://github.com/xtensor-stack/xtensor-blas/archive/${{ version }}.tar.gz sha256: 3411f56d243b92a22fe3a259bc8b414d851ab167b9d30700a1776c9908e0b595 + patches: + - patches/shared.patch build: - number: 0 + number: 1 requirements: build: