Skip to content

Commit e5b1ce1

Browse files
rgommerscharris
authored andcommitted
BLD: use classic linker on macOS, the new one in XCode 15 has issues
Closes numpygh-24964
1 parent 9d6694e commit e5b1ce1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
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')

0 commit comments

Comments
 (0)