mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 17:16:15 +02:00
meson: Prelink links to avoid missing C++ initializers
This is the same as what the old build system did in
7eca8a16ea
, done for the same reasons.
This commit is contained in:
parent
912c517bc0
commit
513f6b9718
12 changed files with 12 additions and 0 deletions
|
@ -80,6 +80,7 @@ this_library = library(
|
||||||
dependencies : deps_public + deps_private + deps_other,
|
dependencies : deps_public + deps_private + deps_other,
|
||||||
include_directories : include_dirs,
|
include_directories : include_dirs,
|
||||||
link_args: linker_export_flags,
|
link_args: linker_export_flags,
|
||||||
|
prelink : true, # For C++ static initializers
|
||||||
install : true,
|
install : true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,7 @@ this_library = library(
|
||||||
# TODO: Remove `-lrapidcheck` when https://github.com/emil-e/rapidcheck/pull/326
|
# TODO: Remove `-lrapidcheck` when https://github.com/emil-e/rapidcheck/pull/326
|
||||||
# is available. See also ../libutil/build.meson
|
# is available. See also ../libutil/build.meson
|
||||||
link_args: linker_export_flags + ['-lrapidcheck'],
|
link_args: linker_export_flags + ['-lrapidcheck'],
|
||||||
|
prelink : true, # For C++ static initializers
|
||||||
install : true,
|
install : true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -193,6 +193,7 @@ this_library = library(
|
||||||
lexer_tab,
|
lexer_tab,
|
||||||
generated_headers,
|
generated_headers,
|
||||||
dependencies : deps_public + deps_private + deps_other,
|
dependencies : deps_public + deps_private + deps_other,
|
||||||
|
prelink : true, # For C++ static initializers
|
||||||
install : true,
|
install : true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -82,6 +82,7 @@ this_library = library(
|
||||||
'nixfetchers',
|
'nixfetchers',
|
||||||
sources,
|
sources,
|
||||||
dependencies : deps_public + deps_private + deps_other,
|
dependencies : deps_public + deps_private + deps_other,
|
||||||
|
prelink : true, # For C++ static initializers
|
||||||
install : true,
|
install : true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,7 @@ this_library = library(
|
||||||
'nixflake',
|
'nixflake',
|
||||||
sources,
|
sources,
|
||||||
dependencies : deps_public + deps_private + deps_other,
|
dependencies : deps_public + deps_private + deps_other,
|
||||||
|
prelink : true, # For C++ static initializers
|
||||||
install : true,
|
install : true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,7 @@ this_library = library(
|
||||||
dependencies : deps_public + deps_private + deps_other,
|
dependencies : deps_public + deps_private + deps_other,
|
||||||
include_directories : include_dirs,
|
include_directories : include_dirs,
|
||||||
link_args: linker_export_flags,
|
link_args: linker_export_flags,
|
||||||
|
prelink : true, # For C++ static initializers
|
||||||
install : true,
|
install : true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@ this_library = library(
|
||||||
# TODO: Remove `-lrapidcheck` when https://github.com/emil-e/rapidcheck/pull/326
|
# TODO: Remove `-lrapidcheck` when https://github.com/emil-e/rapidcheck/pull/326
|
||||||
# is available. See also ../libutil/build.meson
|
# is available. See also ../libutil/build.meson
|
||||||
link_args: linker_export_flags + ['-lrapidcheck'],
|
link_args: linker_export_flags + ['-lrapidcheck'],
|
||||||
|
prelink : true, # For C++ static initializers
|
||||||
install : true,
|
install : true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -396,6 +396,7 @@ this_library = library(
|
||||||
include_directories : include_dirs,
|
include_directories : include_dirs,
|
||||||
cpp_args : cpp_args,
|
cpp_args : cpp_args,
|
||||||
link_args: linker_export_flags,
|
link_args: linker_export_flags,
|
||||||
|
prelink : true, # For C++ static initializers
|
||||||
install : true,
|
install : true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,7 @@ this_library = library(
|
||||||
dependencies : deps_public + deps_private + deps_other,
|
dependencies : deps_public + deps_private + deps_other,
|
||||||
include_directories : include_dirs,
|
include_directories : include_dirs,
|
||||||
link_args: linker_export_flags,
|
link_args: linker_export_flags,
|
||||||
|
prelink : true, # For C++ static initializers
|
||||||
install : true,
|
install : true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,7 @@ this_library = library(
|
||||||
# TODO: Remove `-lrapidcheck` when https://github.com/emil-e/rapidcheck/pull/326
|
# TODO: Remove `-lrapidcheck` when https://github.com/emil-e/rapidcheck/pull/326
|
||||||
# is available. See also ../libutil/build.meson
|
# is available. See also ../libutil/build.meson
|
||||||
link_args: linker_export_flags + ['-lrapidcheck'],
|
link_args: linker_export_flags + ['-lrapidcheck'],
|
||||||
|
prelink : true, # For C++ static initializers
|
||||||
install : true,
|
install : true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -249,6 +249,7 @@ this_library = library(
|
||||||
dependencies : deps_public + deps_private + deps_other,
|
dependencies : deps_public + deps_private + deps_other,
|
||||||
include_directories : include_dirs,
|
include_directories : include_dirs,
|
||||||
link_args: linker_export_flags,
|
link_args: linker_export_flags,
|
||||||
|
prelink : true, # For C++ static initializers
|
||||||
install : true,
|
install : true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@ nix_perl_store_lib = library(
|
||||||
'Store',
|
'Store',
|
||||||
sources : nix_perl_store_cc,
|
sources : nix_perl_store_cc,
|
||||||
name_prefix : '',
|
name_prefix : '',
|
||||||
|
prelink : true, # For C++ static initializers
|
||||||
install : true,
|
install : true,
|
||||||
install_mode : 'rwxr-xr-x',
|
install_mode : 'rwxr-xr-x',
|
||||||
install_dir : join_paths(nix_perl_install_dir, 'auto', 'Nix', 'Store'),
|
install_dir : join_paths(nix_perl_install_dir, 'auto', 'Nix', 'Store'),
|
||||||
|
|
Loading…
Reference in a new issue