diff options
author | Andrew Robbins <andrew@robbinsa.me> | 2023-04-12 11:32:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-12 11:32:51 -0400 |
commit | ab99334f322f98f061d0aaa74b724d6fda0af415 (patch) | |
tree | cbcdc6bd6845d053fee95d97fa9a039c97f5f436 | |
parent | 919e299682fa49b4747dbf010e7b318c46e0458d (diff) | |
download | autoconf-archive-ab99334f322f98f061d0aaa74b724d6fda0af415.tar.gz |
Fix vecLib detection on modern MacOS
For whatever reason Apple's hardened runtime scoping disallows third-party linking to -framework vecLib. Linking -framework Accelerate solves this issue.
-rw-r--r-- | m4/ax_blas.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/m4/ax_blas.m4 b/m4/ax_blas.m4 index 9571905..86ec926 100644 --- a/m4/ax_blas.m4 +++ b/m4/ax_blas.m4 @@ -175,9 +175,9 @@ fi # BLAS in Apple vecLib library? if test $ax_blas_ok = no; then - save_LIBS="$LIBS"; LIBS="-framework vecLib $LIBS" - AC_MSG_CHECKING([for $sgemm in -framework vecLib]) - AC_LINK_IFELSE([AC_LANG_CALL([], [$sgemm])], [ax_blas_ok=yes;BLAS_LIBS="-framework vecLib"]) + save_LIBS="$LIBS"; LIBS="-framework Accelerate $LIBS" + AC_MSG_CHECKING([for $sgemm in -framework Accelerate]) + AC_LINK_IFELSE([AC_LANG_CALL([], [$sgemm])], [ax_blas_ok=yes;BLAS_LIBS="-framework Accelerate"]) AC_MSG_RESULT($ax_blas_ok) LIBS="$save_LIBS" fi |