Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b0719c

Browse files
authored
Merge pull request #24977 from charris/backport-24967
BLD: use classic linker on macOS, the new one in XCode 15 has issues
2 parents 9d6694e + b93e52e commit 7b0719c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

meson.build

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,11 @@ if cc_id.startswith('clang')
8282
endif
8383
endif
8484

85+
if host_machine.system() == 'darwin' and cc.has_link_argument('-Wl,-ld_classic')
86+
# New linker introduced in macOS 14 not working yet with at least OpenBLAS in Spack,
87+
# see gh-24964 (and linked scipy issue from there).
88+
add_project_link_arguments('-Wl,-ld_classic', language : ['c', 'cpp'])
89+
endif
90+
8591
subdir('meson_cpu')
8692
subdir('numpy')

numpy/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ mkl_may_use_sdl = not use_ilp64 and _threading_opt in ['auto', 'iomp']
9393
# First try scipy-openblas, and if found don't look for cblas or lapack, we
9494
# know what's inside the scipy-openblas wheels already.
9595
if blas_name == 'openblas' or blas_name == 'auto'
96-
blas = dependency('scipy-openblas', required: false)
96+
blas = dependency('scipy-openblas', method: 'pkg-config', required: false)
9797
if blas.found()
9898
blas_name = 'scipy-openblas'
9999
endif

0 commit comments

Comments
 (0)