Skip to content

Commit bb9f6c8

Browse files
committed
Fix static build on macOS
1 parent d6d4f24 commit bb9f6c8

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
@@ -100,7 +100,7 @@ this_library = library(
100100
dependencies : deps_public + deps_private + deps_other,
101101
include_directories : include_dirs,
102102
link_args : linker_export_flags,
103-
prelink : true, # For C++ static initializers
103+
prelink : host_machine.system() != 'darwin', # For C++ static initializers, not supported on macOS
104104
install : true,
105105
cpp_pch : do_pch ? [ 'pch/precompiled-headers.hh' ] : [],
106106
)

src/libexpr-c/meson.build

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

src/libexpr-test-support/meson.build

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

src/libexpr/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ this_library = library(
195195
dependencies : deps_public + deps_private + deps_other,
196196
include_directories : include_dirs,
197197
link_args : linker_export_flags,
198-
prelink : true, # For C++ static initializers
198+
prelink : host_machine.system() != 'darwin', # For C++ static initializers, not supported on macOS
199199
install : true,
200200
cpp_pch : do_pch ? [ 'pch/precompiled-headers.hh' ] : [],
201201
)

src/libfetchers-c/meson.build

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

src/libfetchers/meson.build

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

src/libflake-c/meson.build

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

src/libflake/meson.build

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

src/libmain-c/meson.build

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

src/libmain/meson.build

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

0 commit comments

Comments
 (0)