macOS: use ld_classic as workaround for linker issue with XCode 15

XCode 15 (on Ventura and Sonoma) has a linker issue, see https://github.com/mesonbuild/meson/issues/12282, workaround is to use ld_classic
kalman-mex
Willi Mutschler 2023-10-11 00:29:55 +02:00
parent 2e3fbfc040
commit 0a3f4220df
No known key found for this signature in database
GPG Key ID: 91E724BF17A73F6D
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# Meson native file for compiling under Homebrew
# Meson native file for compiling under Homebrew / x86_64
[binaries]
cpp = 'g++-13'
@ -8,4 +8,8 @@ bison = '/usr/local/opt/bison/bin/bison'
[built-in options]
cpp_args = [ '-I/usr/local/include', '-B', '/usr/local/lib' ]
#fortran_args = [ '-B', '/Users/sebastien/slicot' ]
# XCode 15 (on Ventura and Sonoma) has a linker issue, see https://github.com/mesonbuild/meson/issues/12282, workaround is to use ld_classic
cpp_link_args = [ '-Wl,-ld_classic' ]
c_link_args = [ '-Wl,-ld_classic' ]
fortran_link_args = [ '-Wl,-ld_classic' ]
#fortran_args = [ '-B', '/Users/sebastien/slicot' ]