From f35708d2e0ccd8890d2b3bca4b0b50a53accf847 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sat, 10 Dec 2011 19:30:36 +0100 Subject: enforce weak linking of xerbla --- blas/xerbla.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'blas') diff --git a/blas/xerbla.cpp b/blas/xerbla.cpp index bda1d2f46..0d57710fe 100644 --- a/blas/xerbla.cpp +++ b/blas/xerbla.cpp @@ -1,12 +1,18 @@ #include +#if (defined __GNUC__) +#define EIGEN_WEAK_LINKING __attribute__ ((weak)) +#else +#define EIGEN_WEAK_LINKING +#endif + #ifdef __cplusplus extern "C" { #endif -int xerbla_(const char * msg, int *info, int) +EIGEN_WEAK_LINKING int xerbla_(const char * msg, int *info, int) { std::cerr << "Eigen BLAS ERROR #" << *info << ": " << msg << "\n"; return 0; -- cgit v1.2.3