Skip to content

Commit

Permalink
Merge pull request #615 from kiwix/no_static_on_macos
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Apr 28, 2023
2 parents 4e992a1 + 6765239 commit 8067473
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 8067473

Please sign in to comment.