Skip to content

Commit 159cdae

Browse files
authored
Merge pull request #762 from ACSimon33/osx_flat_namespace
Added option to enable flat namespace on macOS
2 parents ca40397 + 12f2f0a commit 159cdae

File tree

5 files changed

+960
-910
lines changed

5 files changed

+960
-910
lines changed

.github/workflows/cmake.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
cmake -B build
7676
-D CMAKE_C_COMPILER="gcc-11"
7777
-D CMAKE_Fortran_COMPILER="gfortran-11"
78+
-D USE_FLAT_NAMESPACE:BOOL=ON
7879
7980
# - name: Use Unix Makefiles on Windows
8081
# if: ${{ matrix.os == 'windows-latest' }}

CBLAS/include/cblas.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,11 @@ void cblas_zher2k(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
608608
const void *B, const CBLAS_INT ldb, const double beta,
609609
void *C, const CBLAS_INT ldc);
610610

611-
void cblas_xerbla(CBLAS_INT p, const char *rout, const char *form, ...);
611+
void
612+
#ifdef HAS_ATTRIBUTE_WEAK_SUPPORT
613+
__attribute__((weak))
614+
#endif
615+
cblas_xerbla(CBLAS_INT p, const char *rout, const char *form, ...);
612616

613617
#ifdef __cplusplus
614618
}

0 commit comments

Comments
 (0)