From 676523934149868434e37fa65f1e5abf39ced3ca Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Fri, 28 Apr 2023 08:16:31 +0200 Subject: [PATCH] Do not build with `--static` on maco_os. --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index bab9221..b8f2ddd 100644 --- a/meson.build +++ b/meson.build @@ -9,7 +9,10 @@ add_global_arguments('-DKIWIX_TOOLS_VERSION="@0@"'.format(meson.project_version( static_linkage = get_option('static-linkage') if static_linkage - add_global_link_arguments('-static-libstdc++', '--static', language:'cpp') + # Static build is not supported on MacOS + if host_machine.system() != 'darwin' + add_global_link_arguments('-static-libstdc++', '--static', language:'cpp') + endif endif thread_dep = dependency('threads')