diff options
author | Remi Collet <remi@remirepo.net> | 2021-02-15 11:05:25 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-02-15 11:05:25 +0100 |
commit | 33dfc42aa6cacbbb339960b306f98922077d313a (patch) | |
tree | ea51770bb9178240d7313452371547cf5fa1eb1a /tensor-libs.patch |
initial package
open https://github.com/RubixML/Tensor/pull/11
check for openblas headers
open https://github.com/RubixML/Tensor/issues/12
PHP 8 compatibility
Diffstat (limited to 'tensor-libs.patch')
-rw-r--r-- | tensor-libs.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tensor-libs.patch b/tensor-libs.patch new file mode 100644 index 0000000..42fe7b3 --- /dev/null +++ b/tensor-libs.patch @@ -0,0 +1,15 @@ +diff --git a/ext/config.m4 b/ext/config.m4 +index 2b130c0..90b7e1c 100644 +--- a/ext/config.m4 ++++ b/ext/config.m4 +@@ -20,9 +20,7 @@ if test "$PHP_TENSOR" = "yes"; then + PHP_ADD_INCLUDE($OPENBLAS_DIR) + fi + +- if ! test "x-lopenblas -llapacke -lgfortran -lpthread" = "x"; then +- PHP_EVAL_LIBLINE(-lopenblas -llapacke -lgfortran -lpthread, TENSOR_SHARED_LIBADD) +- fi ++ PHP_EVAL_LIBLINE(-lopenblas, TENSOR_SHARED_LIBADD) + + AC_DEFINE(HAVE_TENSOR, 1, [Whether you have Tensor]) + tensor_sources="tensor.c kernel/main.c kernel/memory.c kernel/exception.c kernel/debug.c kernel/backtrace.c kernel/object.c kernel/array.c kernel/string.c kernel/fcall.c kernel/require.c kernel/file.c kernel/operators.c kernel/math.c kernel/concat.c kernel/variables.c kernel/filter.c kernel/iterator.c kernel/time.c kernel/exit.c tensor/arithmetic.zep.c |