Skip to content

Commit b0ff637

Browse files
authored
Merge pull request #6220 from martin-frbg/issue6219
Fix default visibility of XERBLA
2 parents 877c188 + 239e3f5 commit b0ff637

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎common_interface.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extern "C" {
4444
/* Assume C declarations for C++ */
4545
#endif /* __cplusplus */
4646

47-
void BLASFUNC(xerbla)(char *, blasint *info, blasint);
47+
OPENBLAS_EXPORT void BLASFUNC(xerbla)(char *, blasint *info, blasint);
4848

4949
OPENBLAS_EXPORT void extern openblas_set_num_threads_(int *);
5050

‎driver/others/xerbla.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,11 @@ void __xerbla(char *message, blasint *info, blasint length) {
104104
return openblas_xerbla_dispatch(message, info, length);
105105
}
106106

107+
OPENBLAS_EXPORT
107108
void BLASFUNC(xerbla)(char *, blasint *, blasint)
108109
__attribute__ ((weak, alias ("__xerbla")));
109110
#else
111+
OPENBLAS_EXPORT
110112
void BLASFUNC(xerbla)(char *message, blasint *info, blasint length) {
111113
return openblas_xerbla_dispatch(message, info, length);
112114
}

0 commit comments

Comments
 (0)