aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorQyriad <qyriad@qyriad.me>2024-06-01 19:17:13 +0000
committerGerrit Code Review <gerrit@lix-systems>2024-06-01 19:17:13 +0000
commitd374a9908f8f92e479c736a160ef90af6df4ca94 (patch)
tree55020ae4d9c9aa6855b177a648e9bf88147e1826 /src/libstore
parentb8cb7abcf08be01a291c970164a3f44dfca0ddbf (diff)
parente54d4c9381492d44a69469a0e719fea50e9914f3 (diff)
Merge "build: fix static linking with a hack" into main
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/meson.build10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstore/meson.build b/src/libstore/meson.build
index 65ecacc20..7a129d22c 100644
--- a/src/libstore/meson.build
+++ b/src/libstore/meson.build
@@ -234,6 +234,16 @@ liblixstore = declare_dependency(
link_with : libstore,
)
+# FIXME: remove when https://git.lix.systems/lix-project/lix/issues/359 is fixed.
+if is_static
+ liblixstore_mstatic = declare_dependency(
+ include_directories : include_directories('.'),
+ link_whole : libstore,
+ )
+else
+ liblixstore_mstatic = liblixstore
+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(