From d611d2e3722ea9ba4ae1a6e333a02ab8c4005f85 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Thu, 2 Jan 2020 02:50:10 +0200 Subject: MAINT: linalg: use symbol suffix in fallback lapack_lite When building the fallback lapack_lite library for numpy.linalg, add symbol suffix to the routines when using 64-bit integer indices. Adjust the lapack_lite generator script to also output a header file that renames the symbols. Moreover, also rename symbols from f2c.c, to be sure (because they have short and generic names that may clash). This avoids a name clash with BLAS/LAPACK names, which can cause problems in corner cases on platforms where inadvertent symbol overriding in dynamic libraries can occur. --- numpy/linalg/lapack_lite/python_xerbla.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'numpy/linalg/lapack_lite/python_xerbla.c') diff --git a/numpy/linalg/lapack_lite/python_xerbla.c b/numpy/linalg/lapack_lite/python_xerbla.c index 4dbb92e1f..fe2f718b2 100644 --- a/numpy/linalg/lapack_lite/python_xerbla.c +++ b/numpy/linalg/lapack_lite/python_xerbla.c @@ -2,9 +2,6 @@ #include "numpy/npy_common.h" #include "npy_cblas.h" -#undef c_abs -#include "f2c.h" - /* From the original manpage: -------------------------- -- cgit v1.2.1