Skip to content

Commit 3dd2f59

Browse files
authored
Merge pull request #342 from openzim/no_static_on_macos
2 parents 14c7277 + 233cb55 commit 3dd2f59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

meson.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ add_global_arguments('-DVERSION="@0@"'.format(meson.project_version()), language
1010
static_linkage = get_option('static-linkage')
1111
compiler = meson.get_compiler('cpp')
1212
if static_linkage
13-
add_global_link_arguments('-static-libstdc++', '--static', language:'cpp')
13+
# Static build is not supported on MacOS
14+
if host_machine.system() != 'darwin'
15+
add_global_link_arguments('-static-libstdc++', '--static', language:'cpp')
16+
endif
1417
if compiler.get_id() == 'gcc' and build_machine.system() == 'linux'
1518
add_global_link_arguments('-Wl,--whole-archive', '-lpthread', '-Wl,--no-whole-archive', language:'cpp')
1619
endif

0 commit comments

Comments
 (0)