Merge "build: fix static linking with a hack" into main

This commit is contained in:
Qyriad
2024-06-01 19:17:13 +00:00
committed by Gerrit Code Review
7 changed files with 66 additions and 11 deletions
+10
View File
@@ -162,6 +162,16 @@ liblixexpr = declare_dependency(
link_with : libexpr,
)
# FIXME: remove when https://git.lix.systems/lix-project/lix/issues/359 is fixed.
if is_static
liblixexpr_mstatic = declare_dependency(
include_directories : include_directories('.'),
link_whole : libexpr,
)
else
liblixexpr_mstatic = liblixexpr
endif
# FIXME: not using the pkg-config module because it creates way too many deps
# while meson migration is in progress, and we want to not include boost here
configure_file(