summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-08-19 15:46:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-08-19 15:46:33 +0100
commit2549b7686d660e35ad46c0eb4acf736272f862a1 (patch)
tree050193568177143463154a6773a7a28c2a77fe28 /contrib
parent4ac1167612936f92488b8e7430465a6d2bfef375 (diff)
downloadrspamd-2549b7686d660e35ad46c0eb4acf736272f862a1.tar.gz
rspamd-2549b7686d660e35ad46c0eb4acf736272f862a1.zip
[Minor] Fix fortran mangling on gnu systems
Diffstat (limited to 'contrib')
-rw-r--r--contrib/kann/kautodiff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/kann/kautodiff.c b/contrib/kann/kautodiff.c
index 7b0bf8e93..c8037d353 100644
--- a/contrib/kann/kautodiff.c
+++ b/contrib/kann/kautodiff.c
@@ -900,6 +900,10 @@ void kad_vec_mul_sum(int n, float *a, const float *b, const float *c)
void kad_saxpy(int n, float a, const float *x, float *y) { kad_saxpy_inlined(n, a, x, y); }
#ifdef HAVE_CBLAS
+#ifndef __APPLE__
+/* As gfortran mangles names */
+#define ssyev ssyev_
+#endif
extern void ssyev(const char* jobz, const char* uplo, int* n, float* a, int* lda, float* w, float* work, int* lwork, int* info);
#ifdef HAVE_CBLAS_H
#include "cblas.h"