Do not build with --static on maco_os.

This commit is contained in:
Matthieu Gautier 2023-04-28 08:16:31 +02:00
parent 4e992a18e8
commit 6765239341

View File

@ -9,8 +9,11 @@ add_global_arguments('-DKIWIX_TOOLS_VERSION="@0@"'.format(meson.project_version(
static_linkage = get_option('static-linkage')
if static_linkage
# 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')
kiwixlib_dep = dependency('kiwix', version:'>=12.0.0', static:static_linkage)