Skip to content

Commit 52e5891

Browse files
committed
Fix static build on macOS
1 parent 5644255 commit 52e5891

File tree

18 files changed

+30
-19
lines changed

18 files changed

+30
-19
lines changed

src/libcmd/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ this_library = library(
9898
dependencies : deps_public + deps_private + deps_other,
9999
include_directories : include_dirs,
100100
link_args : linker_export_flags,
101-
prelink : true, # For C++ static initializers
101+
prelink : host_machine.system() != 'darwin', # For C++ static initializers, not supported on macOS
102102
install : true,
103103
cpp_pch : do_pch ? [ 'pch/precompiled-headers.hh' ] : [],
104104
)

src/libexpr-c/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ this_library = library(
5353
dependencies : deps_public + deps_private + deps_other,
5454
include_directories : include_dirs,
5555
link_args : linker_export_flags,
56-
prelink : true, # For C++ static initializers
56+
prelink : host_machine.system() != 'darwin', # For C++ static initializers, not supported on macOS
5757
install : true,
5858
)
5959

src/libexpr-test-support/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ this_library = library(
4949
# TODO: Remove `-lrapidcheck` when https://github.com/emil-e/rapidcheck/pull/326
5050
# is available. See also ../libutil/build.meson
5151
link_args : linker_export_flags + [ '-lrapidcheck' ],
52-
prelink : true, # For C++ static initializers
52+
prelink : host_machine.system() != 'darwin', # For C++ static initializers, not supported on macOS
5353
install : true,
5454
)
5555

src/libexpr/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ this_library = library(
183183
dependencies : deps_public + deps_private + deps_other,
184184
include_directories : include_dirs,
185185
link_args : linker_export_flags,
186-
prelink : true, # For C++ static initializers
186+
prelink : host_machine.system() != 'darwin', # For C++ static initializers, not supported on macOS
187187
install : true,
188188
cpp_pch : do_pch ? [ 'pch/precompiled-headers.hh' ] : [],
189189
)

src/libfetchers-c/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ this_library = library(
5656
dependencies : deps_public + deps_private + deps_other,
5757
include_directories : include_dirs,
5858
link_args : linker_export_flags,
59-
prelink : true, # For C++ static initializers
59+
prelink : host_machine.system() != 'darwin', # For C++ static initializers, not supported on macOS
6060
install : true,
6161
)
6262

src/libfetchers/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ this_library = library(
6464
dependencies : deps_public + deps_private + deps_other,
6565
include_directories : include_dirs,
6666
link_args : linker_export_flags,
67-
prelink : true, # For C++ static initializers
67+
prelink : host_machine.system() != 'darwin', # For C++ static initializers, not supported on macOS
6868
install : true,
6969
cpp_pch : do_pch ? [ 'pch/precompiled-headers.hh' ] : [],
7070
)

src/libflake-c/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ this_library = library(
5656
dependencies : deps_public + deps_private + deps_other,
5757
include_directories : include_dirs,
5858
link_args : linker_export_flags,
59-
prelink : true, # For C++ static initializers
59+
prelink : host_machine.system() != 'darwin', # For C++ static initializers, not supported on macOS
6060
install : true,
6161
)
6262

src/libflake/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ this_library = library(
6161
dependencies : deps_public + deps_private + deps_other,
6262
include_directories : include_dirs,
6363
link_args : linker_export_flags,
64-
prelink : true, # For C++ static initializers
64+
prelink : host_machine.system() != 'darwin', # For C++ static initializers, not supported on macOS
6565
install : true,
6666
)
6767

src/libmain-c/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ this_library = library(
4848
dependencies : deps_public + deps_private + deps_other,
4949
include_directories : include_dirs,
5050
link_args : linker_export_flags,
51-
prelink : true, # For C++ static initializers
51+
prelink : host_machine.system() != 'darwin', # For C++ static initializers, not supported on macOS
5252
install : true,
5353
)
5454

src/libmain/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ this_library = library(
8080
dependencies : deps_public + deps_private + deps_other,
8181
include_directories : include_dirs,
8282
link_args : linker_export_flags,
83-
prelink : true, # For C++ static initializers
83+
prelink : host_machine.system() != 'darwin', # For C++ static initializers, not supported on macOS
8484
install : true,
8585
)
8686

0 commit comments

Comments
 (0)