]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix fortran mangling on gnu systems
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 19 Aug 2020 14:46:33 +0000 (15:46 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 19 Aug 2020 14:46:33 +0000 (15:46 +0100)
contrib/kann/kautodiff.c

index 7b0bf8e93c5353daf9431012c401f8f47d812825..c8037d353523c1e21d541a01bcaa638e4c1db896 100644 (file)
@@ -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"