From 586c8dbfaeb80b0ce952ff53a30757cd9f540265 Mon Sep 17 00:00:00 2001 From: Willi Mutschler Date: Wed, 11 Oct 2023 15:43:15 +0200 Subject: [PATCH] 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 --- scripts/homebrew-native-x86_64.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/homebrew-native-x86_64.ini b/scripts/homebrew-native-x86_64.ini index d256a0dc..1b56abe3 100644 --- a/scripts/homebrew-native-x86_64.ini +++ b/scripts/homebrew-native-x86_64.ini @@ -4,3 +4,7 @@ cpp = '/usr/local/bin/g++-13' flex = '/usr/local/opt/flex/bin/flex' bison = '/usr/local/opt/bison/bin/bison' + +[built-in options] +# 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' ] \ No newline at end of file