diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-12-10 19:30:36 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-12-10 19:30:36 +0100 |
commit | f35708d2e0ccd8890d2b3bca4b0b50a53accf847 (patch) | |
tree | f918a869122aeb726b9d636fa4d2aefd0d57ac06 /blas | |
parent | 105e170d8ba5aa9032c64e3febb677f1ee900934 (diff) |
enforce weak linking of xerbla
Diffstat (limited to 'blas')
-rw-r--r-- | blas/xerbla.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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 <iostream> +#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; |